Redirect to more than one URL

M

Mark Dengler

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?
 
J

John Timney \(Microsoft MVP\)

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>
 
S

Steve C. Orr, MCSD

You can't do it that way.
Instead you might pop open a new window or two using some client side
javascript.
 

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
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top