陋室铭
永远也不要停下学习的脚步(大道至简至易)

protected void Application_Start(Object sender, EventArgs e)
  {
   System.Timers.Timer myTimer=new System.Timers.Timer(10000); 
   myTimer.Elapsed+=new System.Timers.ElapsedEventHandler(examlpe);
   myTimer.AutoReset = true ; 
   Application.Lock();
   Application["a"]= DateTime.Now.ToString();
   Application.UnLock();
   myTimer.Enabled = true ;
  }
  private void examlpe(object sender,  ElapsedEventArgs e)
  { 
   Application.Lock();
   Application["a"]= DateTime.Now.ToString();
   Application.UnLock();
  }
posted on 2008-07-24 17:08  宏宇  阅读(1559)  评论(0编辑  收藏  举报