tags:

views:

32

answers:

1

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
And killing the web app in the process.
leppie
@leppie, sure, but that does not seem to concern the OP.
klausbyskov
@klausbyskov Thanks
Fraz Sundal
Very true. :) +1
leppie