求asp.net平台下的ajax+timer动态更新页面的实例!

解决方案 »

  1.   

         <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>     
            <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
             <ContentTemplate>
               <asp:Label ID="lblShowTime" runat="server"></asp:Label>  
                <asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="1000">
            </asp:Timer>
            </ContentTemplate>
            </asp:UpdatePanel>    protected void Timer1_Tick(object sender, EventArgs e)
            {
                lblShowTime.Text = DateTime.Now.ToString();
            }
      

  2.   

    用Ajax控件啊
    UpdatePanel可以
    像楼上那样
      

  3.   

    我也是这样做的,就是不出来效果,timer事件没响应,文字没更新
      

  4.   

    http://www.cnblogs.com/Terrylee/archive/2006/11/14/Introduction_to_the_Timer_Control.html
      

  5.   

    window.setInterval("",1000)方法发送ajax请求 
    http://topic.csdn.net/u/20101223/09/fe0a43c9-0b92-4488-aa83-e0187b99efc7.html
      

  6.   

    已经解决了,选项目时应该先ajax项目