关于Timer控件

     < form id = " form1 "  runat = " server " >
        
< asp:ScriptManager ID = " ScriptManager1 "  runat = " server " >
        
</ asp:ScriptManager >

        
< asp:UpdatePanel ID = " UpdatePanel1 "  runat = " server " >
            
< ContentTemplate >
                
<%=  DateTime.Now  %>
                
< asp:Timer ID = " Timer1 "  runat = " server "  Interval = " 1000 " >
                
</ asp:Timer >
            
</ ContentTemplate >
        
</ asp:UpdatePanel >
    
</ form >

还可以设置Timer的 OnTick方法,设定的时间一到就会调用这个方法

你可能感兴趣的:(timer)