Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

So nice of them to design ConfigurationManager.ConnectionSettings("MyConnection").ConnectionString

 

Has anybody figured out how to use this when using a ...DataSource object

 

In otherwords on a SQLDataSource object, the connection string can look at the web.config file (rather having to create a new one).

 

Or for AccessDataSource object, the DataFile could look at the connection string rather than having to add the database to your App_Data or manually typing in the path.

 

To me this would be great usability.

  • 2 weeks later...
  • Administrators
Posted

Given a web.config that contains


   

 

You can declare a DataSource object like

 

Is that what you mean? Note that under asp.net 2.0 a lot of what used to be code for data binding can now be moved into the asp tags and made a lot more declarative.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...