Hi,
How to do automatic page refresh in asp.net.
Please help!
Any help would be appreciated.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Soft CornerPosted Mar 1, 2011, 8:01 AM
HTML header refresh tag
The most common and best known way - a tag of the following format is placed in the HTML section of the page:
<meta http-equiv="refresh" content="8;url=http://dotnet.org.za/">
Response.AppendHeader method
ASP.NET provides the AppendHeader method to the Response object. Typically the page refresh can be set as follows in an ASP.NET webform (in C#):
Here the page refresh is set to 5 seconds after the client session timeout setting specified in the web.config file.
Suthish NairPosted Mar 2, 2011, 3:19 AM
Vijay YadavPosted Mar 1, 2011, 11:48 PM
My query is that i have hosted my web page on server and when i open the page in browser it perform the action send the mail if it meets the condition but if i close the browser and it meets the condition. I want that the action should be get performed on server as it is hosted..
Suthish NairPosted Mar 1, 2011, 11:34 AM
Vijay YadavPosted Mar 1, 2011, 9:11 AM
i have uploaded my page on server have written some action on page load event. it works fine, but when i close the page it doesn't work. I want that page should be refresh every second as it is hosted on server even when the page is not running in browser. Please help!
Manikavelu VelayuthamPosted Mar 1, 2011, 7:58 AM
1. Response.AddHeader("Refresh", "30");
2. http://www.codeproject.com/KB/aspnet/AutoRefreshWebPage.aspx
3. http://www.mindfiresolutions.com/Autorefresh-an-ASPNET-aspx-web-page-37.php