Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 changing dataset connectionstring place

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2007-08-01 : 22:23:06
PB: in dll project:I need my dataset to read the connectionstring from web.config

Hi,

I created a dll that serves as my data logic and a bit of business logic

in the dll, I used dataset designer to generate my data access classes...etc

Because it s a dll project, the dataset reads the connection string from the file: Settings.settings

My Need: For maintainance reasons, I dont want my dataset to get the connectionstring from the dll file Settings.settings but from the file web.config of the main web application. I need to do that without the code being overwritten when when the DB changes or when the dataset is regenerated again.
   

- Advertisement -