Hi !! I am creating web based reporting application. For this I am using DAAB block. I have stored connection string under Web.config file's appsettings section. Is there a way I can create a generic method which I can call in all web Page which will return
connection string? I don't want to do something like ConfigurationSettings.AppSettings[""] under Page load of all web pages. However ConfigurationSettings.AppSettings[""] should be able to return connection string and I can use it in all page. Do I have to
create seperate dll (.cs class file) with static method which will return connection string? I hope I am clear and someone can answer me. Another developer with me wants me to create base page and do all this under base page and then inherit report pages from
base page. I don't think its a good idea.
love_luv
Contributor
2256 Points
481 Posts
DAAB and Database Connection String
Dec 13, 2004 09:10 PM|LINK