Web.config
<appSettings><add key=\"name\" value=\"hello\"/></appSettings>
C#读取
string name = System.Web.Configuration.WebConfigurationManager.AppSettings[\"name\"];
C#设置
System.Web.Configuration.WebConfigurationManager.AppSettings.Set(\"name\", \"world\");
欢迎访问作者个人技术博客:www.blackvon.top
作者的微信公众号和小程序