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();
  }

相关文章:

  • 2022-12-23
  • 2021-10-02
  • 2021-10-29
  • 2021-12-23
  • 2021-05-22
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-02-26
  • 2021-10-04
  • 2021-08-08
相关资源
相似解决方案