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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Soft CornerRank #1,221 · 1.5K reputationPosted Mar 1, 2011, 3:01 AM EST
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.
Manikavelu VelayuthamRank #413 · 6K reputationPosted Mar 1, 2011, 2:58 AM EST
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
Vijay YadavRank #1,637 · 943 reputationPosted Mar 1, 2011, 4:11 AM EST
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!
Suthish NairRank #92 · 22.8K reputationPosted Mar 1, 2011, 6:34 AM EST
Vijay YadavRank #1,637 · 943 reputationPosted Mar 1, 2011, 6:48 PM EST
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 NairRank #92 · 22.8K reputationPosted Mar 1, 2011, 10:19 PM EST