Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Redirecting a page after a delay

Reply
Thread Tools

Redirecting a page after a delay

 
 
JJ
Guest
Posts: n/a
 
      05-31-2007
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


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      05-31-2007
On May 31, 1:58 pm, "JJ" <a...@xyz.com> wrote:
> 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.

 
Reply With Quote
 
 
 
 
JJ
Guest
Posts: n/a
 
      05-31-2007
Thanks - actually I'd left out brackets on my 'else...' and so the code was
falling through and redirecting twice.
JJ
"Alexey Smirnov" <> wrote in message
news: ups.com...
> On May 31, 1:58 pm, "JJ" <a...@xyz.com> wrote:
>> 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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating propagation delay & transmission delay Stone Cisco 1 09-27-2006 06:26 PM
Redirecting to a page after login Katie ASP General 3 08-04-2006 07:31 PM
Redirecting to another page after a specified time anujrathi ASP .Net Web Controls 1 08-03-2006 02:50 PM
Redirecting page after 5 seconds? Ben Fidge ASP .Net 1 08-08-2004 05:55 PM
Redirecting after page rendering Bill Hauver ASP .Net 2 11-22-2003 05:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57