标签:
winform
config中
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="luoji" value="1"/>
</appSettings>
</configuration>
后台调用
System.Configuration.ConfigurationSettings.AppSettings["luoji"].ToString() == "1"
web项目
config中
<connectionStrings>
<add name="yunname" connectionString="http://192.168.10.246"/>
</connectionStrings>
后台调用
Response.Write("<script>parent.location.href=‘" + ConfigurationManager.ConnectionStrings["yunname"].ConnectionString + "‘ </script>");
标签:
原文地址:http://www.cnblogs.com/110abcd/p/4680807.html