Modify Web.Config Programmatically?

  • Thread starter Thread starter Stewart Armbrecht
  • Start date Start date
S

Stewart Armbrecht

Does anyone know of a good example for modifying the web.config file
programmitically. I would like to update the web.config file's connection
string when I deploy the web application using a web set up project.
 
You can open up the web.config file as an XML file, and then parse and
modify it using whichever XML API suits your fancy. I haven't done enough
with web set up projects to advise you how to do this here.
 

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

Back
Top