62,041
社区成员
发帖
与我相关
我的任务
分享
<asp:ScriptManager ID="ScriptManager1" runat="server"
AllowCustomErrorsRedirect="False">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server" Interval="1000" ontick="Timer1_Tick">
</asp:Timer>
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
</ContentTemplate>
</asp:UpdatePanel>
protected void Timer1_Tick(object sender, EventArgs e)
{
Literal1.Text = DateTime.Now.ToString();
}