Results 1 to 2 of 2

Thread: refresh Web page at certain interval

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    77

    refresh Web page at certain interval

    how to have a web page to be refreshed at every particular interval..any help is appreciated...thank you

  2. #2
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    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
    Code:
    <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:
    VB Code:
    1. If something = true then
    2.     Response.AddHeader("Refresh", "60;url=myrefreshingpage.aspx")
    3. end if
    To make a page refresh itself make sure the specified url is the same as the page that is refreshing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width