Groups | Blog | Home
all groups > asp.net > march 2004 >

asp.net : Modify Web.Config Programmatically?


Stewart Armbrecht
3/1/2004 11:26:49 PM
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.

Chris Jackson
3/2/2004 11:32:28 AM
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.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

[quoted text, click to view]

AddThis Social Bookmark Button