string ServerUrl= ConfigurationManager.AppSettings["ServerUrl"].ToString();
web.config中的配置为:
<configuration>
<appSettings>
<add key="ServerUrl" value="http://192.168.?.?/?/?" />
</appSettings>
</configuration>
获取webconfig配置文件内容
原文地址:https://www.cnblogs.com/wxxf/p/9184208.html