码迷,mamicode.com
首页 > Web开发 > 详细

获取webconfig配置文件内容

时间:2018-06-14 20:51:35      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:manager   http   web   pps   server   内容   add   bsp   ring   

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

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

获取webconfig配置文件内容

标签:manager   http   web   pps   server   内容   add   bsp   ring   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!