connectionstring in web.config
- From: ginkim@xxxxxxxxx
- Date: 5 Feb 2007 16:47:27 -0800
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.
.
- Prev by Date: San Diego .NET Developer Group Meeting (FEB 6th 2007)
- Next by Date: Custom Configuration - dll
- Previous by thread: San Diego .NET Developer Group Meeting (FEB 6th 2007)
- Next by thread: Custom Configuration - dll
- Index(es):