How do I add an auto-refresh feature based on the value of a GET parameter?
For example, “http://localhost/myPage.aspx?refresh=5” would auto-refresh the page every 5 minutes.
NOTE: A VB code example is preferred.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is one way to do it – an alternative would be to to use javascript to force a refresh or get just the content you need, but this should work fine for a simple full-page refresh.
The following code should be added to the OnLoad handler of the page you want to refresh.
Please note that I’m really a C# guy at heart, as such this VB.NET code is untested.