摘要:
ASP.NET通过Global.asax和Timer定时器定时运行后台代码Global.asax文件1.Application_Start方法添加 // 在应用程序启动时运行的代码 System.Timers.Timer myTimer = new System.Timers.Timer(60000); myTimer.Elapsed += new System.Timers.ElapsedEventHandler(OnTimedEvent); myTimer.Interval = 60000; myTimer.Enabled = true;2.添加方法 private void OnTime
阅读全文