Hi Ubaid,
Reference System.Threading, add an AJAX timer control and a ScriptManager to your aspx page.
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:timer runat="server" ID="tmr1" Interval="300000" ontick="tmr1_Tick"></asp:timer>
<h1><asp:Label Text="" ID="lblTestTimer" runat="server"></asp:Label></h1>
in timer_tick event put the following codes:
protected void tmr1_Tick(object sender, EventArgs e)
{
lblTestTimer.Text = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss tt");
lblTestTimer.Visible = true;
Thread.Sleep(10000);
lblTestTimer.Visible = false;
}
This will do the trick what you want...Cheers !!
Happy Coding :)
Sunny_K