获取webconfig配置文件内容

string ServerUrl= ConfigurationManager.AppSettings["ServerUrl"].ToString();

web.config中的配置为:
<configuration>
<appSettings>
    <add key="ServerUrl" value="http://192.168.?.?/?/?" />
</appSettings>
</configuration>

原文地址:https://www.cnblogs.com/wxxf/p/9184208.html