在configuration节点,也就是文件的根节点下,增加如下节点
<appSettings> <!--<add key="propPath" value="D:websiteecrm.shinho.net.cnCacheFileprop.cache" />--> <add key="propPath" value="D:workcustomerHR.UICacheFileprop.cache" /> <add key="labelPath" value="D:workcustomerHR.UICacheFilelabel.cache" /> <add key="db" value="D:workCustomerHR.UIReportDB mall.db"/> </appSettings>
然后在程序中这么调用:
string path = System.Web.Configuration.WebConfigurationManager.AppSettings["db"];
就OK了。