在一个项目中想实现以上功能,在项目中加入一个 Global.aspx文件即可实现。public class Global : System.Web.HttpApplication { protected void Application_Start(object sender, EventArgs e) { //定义定时器 System.Timers.Timer myTimer = new System.Timers.Timer(5000); myTimer.Elapsed += new ElapsedEventHandler(myTimer_Elapsed); myTimer.Enabl.. Read More
posted @ 2012-01-06 21:27 咸鱼公子 Views(494) Comments(0) Diggs(0) Edit