Loading ...

Auto refresh page | CodeAsp.Net

Auto refresh page

 /5
0 (0votes)

Here I have discussed how we auto refresh page and why we need to auto refresh the page.
Page is Auto refresh means forcing a page to post back without user input.

Following are the main reason to auto refresh the page.
1. Redirecting to a new URL after some specific time.

2. Refreshing page information within a given time period.
3. Maintain a session state.

We auto refresh the page in following way:

<meta http-equiv="refresh" content="30;url=http://www.codeasp.net/">

Put this line inside the header tag of the page.
1. Here 30 refers to the number of seconds, now page is refresh after 30 seconds;
2. URL is not compulsory if we don't give the URL it means it refresh the current page.

Comments (10)

   
gita
gita
Hey Vijendra, this is a very useful information that i was searching for...but could you please tell me how can i use it with my blogger`s blog...!
regards
Gita
4/2/2010
 · 
by
   
Vijjendra
Hi, Gita can you explain what you want to do?.
4/2/2010
 · 
by
   
vasimbang
vasimbang
thanks
4/6/2010
 · 
by
   
Anonymous
Anonymous
Hi, if i want to refresh just one block of the page and not the whole page, how can i do that? thank you
5/30/2010
 · 
by
   
ramesh
ramesh
dear friend  i want to make my blogspot page auto refersh the page like this "blog http://www.brameshtechanalysis.com/charts/banknifty.html"  so my visiter will get the data update .    can u expalin it or
6/18/2010
 · 
by
   
Vijjendra
Hi Ramesh,You can use above given method for auto refreshing the page after a certain interval, if you don't want to redirect the page just remove the url property.<meta http-equiv="refresh" content="30">This will refresh page after every 30 second.
6/18/2010
 · 
by
   
Vijjendra
Hi Ramesh,You can use above given method for auto refreshing the page after a certain interval, if you don't want to redirect the page just remove the url property.<meta http-equiv="refresh" content="30">This will refresh page after every 30 second.
6/18/2010
 · 
by
   
Vijjendra
Hi Ramesh,You can use above given method for auto refreshing the page after a certain interval, if you don't want to redirect the page just remove the url property.<meta http-equiv="refresh" content="30">This will refresh page after every 30 second.You can follow my article for autorefreshhttp://codeasp.net/articles/asp-net/41/auto-refresh-data-using-ajax-in-asp-net
6/18/2010
 · 
by
   
azeem
yes it very use full
8/7/2010
 · 
by
   
Vishal
Vishal
Is there any trick to auto refresh a specific content on a web page. like refreshing a live chart on bloggers page.
11/26/2011
 · 
by
  • :*
  • :*
  • :
 *

Top Posts