c#修改webConfig的内容

亲测有效

Configuration config=System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
config.AppSettings.Settings.Remove("IsChangeDb");
config.AppSettings.Settings.Add("IsChangeDb", "true");
config.Save();
————————————————
原文链接:https://blog.csdn.net/qq_32452623/article/details/53580093

原文地址:https://www.cnblogs.com/xiaohezhong/p/14653073.html