I am working on a utility which helps the user to setup the web.config file (which is of course, an XML document)for their environment.
After answering several questions in the app, the user hits "finish" which should then update the following string in the web.config with the user's specific environment's settings...
<appSettings>
<add key="ConnectionString" value="provider=SQLOLEDB;Data Source=servername;Database=databasename;UID=username;Password=password" />
I have everything working at this point, EXCEPT I do not know how to update the XML document with the information I have collected.
Can anyone help? How do I update the XML document (assume the location of the XML document is "c:\web.config"
After answering several questions in the app, the user hits "finish" which should then update the following string in the web.config with the user's specific environment's settings...
<appSettings>
<add key="ConnectionString" value="provider=SQLOLEDB;Data Source=servername;Database=databasename;UID=username;Password=password" />
I have everything working at this point, EXCEPT I do not know how to update the XML document with the information I have collected.
Can anyone help? How do I update the XML document (assume the location of the XML document is "c:\web.config"