Fraz Sundal
Fraz Sundal

Reputation: 10448

Add or Edit in webconfig file

I want to add or update webconfig file in C#. How can i do this?

Upvotes: 2

Views: 228

Answers (1)

Klaus Byskov Pedersen
Klaus Byskov Pedersen

Reputation: 120917

You need to look at the ConfigurationManager class. It will give you a Configuration object which you can edit and call Save on.

Upvotes: 2

Related Questions