ajax timer空间问题
<asp:ScriptManager ID= "ScriptManager1 " runat= "server ">
</asp:ScriptManager>
<div>
<asp:UpdatePanel ID= "UpdatePanel1 " runat= "server ">
<ContentTemplate>
<asp:Label ID= "Label1 " runat= "server " Text= "Label "> </asp:Label>
<asp:Timer ID= "Timer2 " runat= "server " OnTick= "Timer2_Tick " Interval= "1000 ">
</asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
前台
protected void Timer2_Tick(object sender, EventArgs e)
{
Label1.Text = DateTime.Now.ToLongTimeString();
}后台
问题很简单,就是不刷新,请大家帮我看一下,谢谢了
[解决办法]
Timer2.Enable看一下是不是为true