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.
 
Back
Top