troubleshooting Question

Write on Web.Config file from C#

Avatar of chokka
chokkaFlag for United States of America asked on
C#ASP.NET.NET Programming
3 Comments1 Solution396 ViewsLast Modified:
VS 2008 / C#.Net

In run time, i need to edit or rewrite my config file.

We have a feature, for Admin can change folder, file settings on the .aspx page. These informations are stored on config file instead of database. Infact, i need to rewrite some of the database connection strings also.

How to write / rewrite (edit) a config file on runtime ??
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros