MainApp.wet 下面webconfig,index

 

 Web.config

<!--10分钟:首页更新时间间隔-->
    <add key="UpdateTimespan" value="10"/>

index.asp.

 UpdateTimespan=<% = UpdateTimespan %>

index.asp.cs.

 public string UpdateTimespan;

 UpdateTimespan = System.Configuration.ConfigurationManager.AppSettings["UpdateTimespan"];

 

MainApp.app

 public static string UpdateTimespan;

common

cfgmgr

 else if (param.Key == "UpdateTimespan")
                    CfgMgr.UpdateTimespan = param.Value;

 

使用

 myDispatcherTimer.Interval = new TimeSpan(0, 0, int.Parse(Common.CfgMgr.UpdateTimespan.Trim()), 0);

 

 

 

 

第二部分

 

<!--启用老银行接口 1;启动新接口 0 两者不可并行-->
    <add key="StartOldBalance" value="1"/>
    <!--处理时间会有个偏差-->
    <add key="Offsettime" value="2"/>

 

 

 public static string StartOldBalance = GetConfigValue("StartOldBalance");
        public static string Offsettime= GetConfigValue("Offsettime");

 

 

直接用

posted on 2011-01-13 09:31  hl3292  阅读(150)  评论(0编辑  收藏  举报