Click to See Complete Forum and Search --> : refresh Web page at certain interval
jag_chat
Apr 11th, 2004, 11:50 AM
how to have a web page to be refreshed at every particular interval..any help is appreciated...thank you
Fishcake
Apr 12th, 2004, 01:39 PM
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
<META HTTP-EQUIV="Refresh" CONTENT="x;URL=http://www.some.com/some.aspx">at the top of your .aspx file, where x is the number of seconds to wait before refreshing.
2. If you only want the page to refresh under certain conditions then you can use code such as:If something = true then
Response.AddHeader("Refresh", "60;url=myrefreshingpage.aspx")
end ifTo make a page refresh itself make sure the specified url is the same as the page that is refreshing.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.