connectionstring in web.config

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top