how to refresh a web page for every five minutes?

Posted by Rajendra.prasad under ASP.NET on 6/9/2010 | Views : 6709 | Status : [Member] | Replies : 2
Hi All,

how to refresh a web page for every five minutes?

Regards,
Rajendra




Responses

Posted by: Chilverupavan on: 6/9/2010 [Member] Starter

Up
0
Down
hi,,
use timer control to refresh a webpage for every five minutes
for example:
drag and drop timer control in form.aspx
and in form load add the code like below

<asp:Timer ID="Timer1" runat="server" Interval="6000" ontick="Timer1_Tick" />

form load

public void DoMagic()
{


}
protected void Timer1_Tick(object sender, EventArgs e)
{
DoMagic();
Label1.Text = "";
}

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Poster on: 6/9/2010 [Member] Starter

Up
0
Down
Below is the exact code for your requirement.

<Head>

<meta equiv="refresh" content="5">
</Head>


taken from http://www.dotnetfunda.com/codes/code319-refresh-web-page-automatically.aspx

Thank you

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response