.ini文件安全性不好,在.net好象不能用了
大多数配置文件写在了Web.Config文件中,比如联库可以这样Web.Config
<add key="SqlConn" value="Persist Security Info=False;database=news;Data Source=localhost;User ID=sa;password=;" />
页面中
string Conn=ConfigurationSettings.AppSettings["SqlConn"]
大多数配置文件写在了Web.Config文件中,比如联库可以这样Web.Config
<add key="SqlConn" value="Persist Security Info=False;database=news;Data Source=localhost;User ID=sa;password=;" />
页面中
string Conn=ConfigurationSettings.AppSettings["SqlConn"]
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货