【▲】怎么让Timer控件每5分钟触发一次事件
ASP.NET AJAX 里的Timer控件,怎么让其控件每5分钟触发一次事件,求助!
[解决办法]
<asp:Timer ID= "Timer1 " runat= "server " Interval= "300000 " OnTick= "Timer1_Tick ">
</asp:Timer>
protected void Timer1_Tick(object sender, EventArgs e)
{
在这里写代码
}
[解决办法]
http://www.cnblogs.com/Terrylee/archive/2006/11/14/Introduction_to_the_Timer_Control.html
上面有用法自己看