bri189a Posted October 19, 2005 Posted October 19, 2005 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. Quote
Administrators PlausiblyDamp Posted November 1, 2005 Administrators Posted November 1, 2005 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.