Reputation: 2192
Upvotes: 2
Views: 708
Reputation: 24515
A simple way might be to simply Read in the web.config and do a string replace, then write out the web.config again:
eg: in web.config containing:
...
<add name="Application" connectionString="SETUP_CONNECTION_STRING" />
...
replace SETUP_CONNECTION_STRING
with actual string:
This assumes its done on initial setup where multiple settings could be set without the need to use the Configuration classes etc.
Upvotes: 1