connectionstring in web.config

  • Thread starter Thread starter ginkim
  • Start date Start date
G

ginkim

Is there a way to grab the connectionstring value from the web.config
in another project? I created a DataAccess layer to store my typed
dataset and it automatically created settings.settings and app.config.
The settings.settings grab the connectionstring from app.config.

The problem I have is that when I publish a website that accesses the
dataset, it imports the DataAccess.dll into its bin folder. From here,
it's impossible for me to change the connectionstring since the
app.config does not get added anywhere in the website folder.

If I can somehow get the DataAccess layer to use my website's
web.config to grab the connectionstring, it'd be much helpful.

Thanks,
Gina.
 
Back
Top