By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,969 Members | 1,579 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,969 IT Pros & Developers. It's quick & easy.

Redirecting a page after a delay

P: n/a
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
May 31 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On May 31, 1:58 pm, "JJ" <a...@xyz.comwrote:
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.

May 31 '07 #2

P: n/a
JJ
Thanks - actually I'd left out brackets on my 'else...' and so the code was
falling through and redirecting twice.
JJ
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
On May 31, 1:58 pm, "JJ" <a...@xyz.comwrote:
>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.

May 31 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.