摘要:
本人最近在做一个基于Access数据库的Web应用程序,为了实现一个定时更新数据库的需求,我在Global.asax中的Application_Start函数里写了个计时器, void Application_Start(object sender, EventArgs e) { // 在应用程序启动时运行的代码 System.Timers.Timer atimer = new System.Timers.Timer(60000); atimer.Elapsed += timer_execute; atimer.AutoRes... 阅读全文