Refresh limit?

Refresh limit?

am 29.01.2008 23:34:05 von Tony Sinclair

This code refreshes correctly:
<% Response.AddHeader "Refresh", "5;URL=page.asp" %>

This code does not refresh:
<% Response.AddHeader "Refresh", "1140;URL=page.asp" %>


Is there a limit on how many seconds I can use?

RE: Refresh limit?

am 31.01.2008 09:21:00 von cb

You could check the page source of the resulting web page to see if an
appropriate meta-refresh tag is being written into the page. If not, you
could always just write it out by hand instead of using the AddHeader method
(response.write(" content=""1140;URL=whatever"">"))

Keep in mind also that the browser also has a say independent of your code,
and every browser could be different regarding whether it has a bug or
deliberately ignores very long refresh times and what the limit is.

Re: Refresh limit?

am 01.02.2008 01:47:54 von Tony Sinclair

> You could check the page source of the resulting web page to see if an
> appropriate meta-refresh tag is being written into the page. If not, you
> could always just write it out by hand instead of using the AddHeader
> method
> (response.write(" > content=""1140;URL=whatever"">"))
>
> Keep in mind also that the browser also has a say independent of your
> code,
> and every browser could be different regarding whether it has a bug or
> deliberately ignores very long refresh times and what the limit is.


Good plan, good insight... thanks!