I want to add or update webconfig file in C#. How can i do this?
A:
You need to look at the ConfigurationManager
class. It will give you a Configuration
object which you can edit and call Save
on.
klausbyskov
2010-10-15 13:50:47
And killing the web app in the process.
leppie
2010-10-15 13:51:13
@leppie, sure, but that does not seem to concern the OP.
klausbyskov
2010-10-15 13:52:04
@klausbyskov Thanks
Fraz Sundal
2010-10-15 13:53:32
Very true. :) +1
leppie
2010-10-15 13:53:44