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

posted @ 2021-04-13 14:31  .net新手小白学习中  阅读(151)  评论(0编辑  收藏  举报