Auto update time in page in the top corner

Posted by Satyadevanand under ASP.NET category on | Points: 40 | Views : 1833
Time will automatically updated
ASP page
<asp:ScriptManager ID="ScriptManager1" runat="server">
<div style="float:right;border:solid 1px blue">
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<asp:Label ID="Label3" runat="server" Text="Time" ForeColor="#d0224e"></asp:Label>
<asp:Timer ID="Timer1" runat="server" Interval="1000" ontick="Timer1_Tick">

    protected void Timer1_Tick(object sender, EventArgs e)
Label3.Text = DateTime.Now.ToString();

Comments or Responses

Login to post response