470,626 Members | 2,139 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,626 developers. It's quick & easy.

Redirect to more than one URL

Is it possible to do a Response.Redirect to multiple URLs?

I have tried the following and it simply ignores the first redirect:

Response.Redirect("test.aspx", false);
Response.Redirect(p.UrlSend, true);
I have designed the test.aspx page to simple write a cookie, just to
see if it is working and it is not. I have also used to VS.Net
Debugger and I can see that it is just skipping the first redirect.
The second redirect is executing.

Am I on the right track or is there another more appropriate method?
Is this even possible?
Nov 17 '05 #1
2 3037
You can't do it that way.
Instead you might pop open a new window or two using some client side
javascript.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Mark Dengler" <md******@go.com> wrote in message
news:8c**************************@posting.google.c om...
Is it possible to do a Response.Redirect to multiple URLs?

I have tried the following and it simply ignores the first redirect:

Response.Redirect("test.aspx", false);
Response.Redirect(p.UrlSend, true);
I have designed the test.aspx page to simple write a cookie, just to
see if it is working and it is not. I have also used to VS.Net
Debugger and I can see that it is just skipping the first redirect.
The second redirect is executing.

Am I on the right track or is there another more appropriate method?
Is this even possible?

Nov 17 '05 #2
What exactly are you looking to accomplish by asking the browser to
redirect, then redirect again immediately ??

Its only possible if you want to redirect to two windows, as the response
has not ended from the response stream and the last thing your browser
recieves is the second redirect, so it would probably act on that.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

"Mark Dengler" <md******@go.com> wrote in message
news:8c**************************@posting.google.c om...
Is it possible to do a Response.Redirect to multiple URLs?

I have tried the following and it simply ignores the first redirect:

Response.Redirect("test.aspx", false);
Response.Redirect(p.UrlSend, true);
I have designed the test.aspx page to simple write a cookie, just to
see if it is working and it is not. I have also used to VS.Net
Debugger and I can see that it is just skipping the first redirect.
The second redirect is executing.

Am I on the right track or is there another more appropriate method?
Is this even possible?

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Justin | last post: by
4 posts views Thread by Harsh Thakur | last post: by
13 posts views Thread by Tim | last post: by
4 posts views Thread by news.microsoft.com | last post: by
3 posts views Thread by wwwmike | last post: by
2 posts views Thread by =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= | last post: by
3 posts views Thread by =?Utf-8?B?UGF0UA==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.