zoukankan      html  css  js  c++  java
  • .net中webconfig自定义配置

    在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了。

  • 相关阅读:
    c++ 01
    unix c 11
    unix c 10
    unix c 09
    unix c 08
    unix c 07
    unix c 06
    unix c 05
    unix c 04
    Petrozavodsk Summer Training Camp 2017
  • 原文地址:https://www.cnblogs.com/wpcnblog/p/7238747.html
Copyright © 2011-2022 走看看