Redirecting a page after a delay

J

JJ

I used this to redirect a page after a delay of 8 seconds:
this.Response.AddHeader("Refresh", "8;URL=mylocalurl")

However I notice that the page I am redirected to is also refreshed again in
8 seconds. Is there any way I can forward without the extra refresh?

Thanks,

JJ
 
G

Guest

I used this to redirect a page after a delay of 8 seconds:
this.Response.AddHeader("Refresh", "8;URL=mylocalurl")

However I notice that the page I am redirected to is also refreshed again in
8 seconds. Is there any way I can forward without the extra refresh?

Thanks,

JJ

Check the META tags on the second page. It looks like you added
refresh to the header twice.
 
J

JJ

Thanks - actually I'd left out brackets on my 'else...' and so the code was
falling through and redirecting twice.
JJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top