how to have a web page to be refreshed at every particular interval..any help is appreciated...thank you
Printable View
how to have a web page to be refreshed at every particular interval..any help is appreciated...thank you
A couple of ways you could do it depending on how you want it to work.
1. If you want the page to always refresh you could simply put
at the top of your .aspx file, where x is the number of seconds to wait before refreshing.Code:<META HTTP-EQUIV="Refresh" CONTENT="x;URL=http://www.some.com/some.aspx">
2. If you only want the page to refresh under certain conditions then you can use code such as:To make a page refresh itself make sure the specified url is the same as the page that is refreshing.VB Code:
If something = true then Response.AddHeader("Refresh", "60;url=myrefreshingpage.aspx") end if