怎么用

解决方案 »

  1.   

    好像不能像winform 那样每隔几秒钟实现一个应用
      

  2.   

    C#.NET: Web Timer Control Tutorial - C# & VB.NET
    http://www.astahost.com/info.php/c-net-web-timer-control-tutorial_t6605.html
      

  3.   

    有个Click事件,配合updatepanel一起使用效果更佳
      

  4.   

    window.setInterval("alert('hello world')", 5000);
      

  5.   

    来个例子看看
    前台:
      <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick">
            </asp:Timer>  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
             <ContentTemplate>
               <h1><%# DateTime.Now.ToString() %></h1>
             </ContentTemplate>
             <Triggers>
               <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
             </Triggers>
            </asp:UpdatePanel>后台
     protected void Timer1_Tick(object sender, EventArgs e)
        {
            this.DataBind();
        }----
    Timer与ScriptManager ,UpdatePanel可以实现无刷新.
      

  6.   

    配合AJAX
    使用window.setInterval实现timer