C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Tips » Web Development »

Refresh your ASP.net page automatically


Posted Date: 06 Nov 2009    Resource Type: Tips    Category: Web Development
Author: PrajeeshMember Level: Gold    
Rating: 1 out of 5Points: 3



For the websites that is having frequently updated content, you may need to refresh the page in an interval of time, use following code for doing this.


Response.AppendHeader("Refresh", "60; URL=Default.aspx");


Above code will refresh the page in 60 seconds



Responses

Author: venkatesan    11 Nov 2009Member Level: Diamond   Points : 2
If you use the above code ?

in the master page so it will refresh for every 60 second, Suppose the user want to type or fill some forms there he take more than a min so if you use this code it will reset all the values entered by user ??

If you provide some background process or somthing without affecting the user interacting with the page /


Author: Prajeesh    12 Nov 2009Member Level: Gold   Points : 1
Hi venkatesan,
We are no supposed to use above code for pages containing any form, rather we can use the code to display frequently changing data, alternatively you can use asp.net ajax to achieve this by using an update panel and timer control.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Automatic Page Refresh  .  Asp.net  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Commonly used reguler expressions
Previous Resource: 28 ASP.NET tips
Return to Discussion Resource Index
Post New Resource
Category: Web Development


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use