Redirect to more than one URL

  • Thread starter Thread starter Mark Dengler
  • Start date Start date
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?
 
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>
 
You can't do it that way.
Instead you might pop open a new window or two using some client side
javascript.
 
Back
Top