Ask a Question related to ASP.NET General, Design and Development.
-
Mark Dengler #1
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?
Mark Dengler Guest
-
redirect to ..
hi, I have several page where you can edit the record When you modified the record you suppose to go where you came for example you can... -
redirect to guest if first redirect is doesnt work for a user
Hi all, I was wondering if anyone could help me solve a problem Once a user hits a certain webpage ..I try to redirect them to another using... -
redirect?!?!?
Hi i am wondering if anybody knows how to redirect a user to another page if a statement returns true? Here is the code, I am using PHP: // check... -
How to Redirect?
I have a PHP script that waits for a file to appear, and then redirects to it. This works fine: <?php $filename = 'NewData.html'; while (!... -
Redirect to New Browser Window like Response.Redirect
That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in... -
John Timney \(Microsoft MVP\) #2
Re: Redirect to more than one URL
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" <mdengler@go.com> wrote in message
news:8cdf9ea9.0307301052.4de6c47a@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?
John Timney \(Microsoft MVP\) Guest
-
Steve C. Orr, MCSD #3
Re: Redirect to more than one URL
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
[url]http://Steve.Orr.net[/url]
"Mark Dengler" <mdengler@go.com> wrote in message
news:8cdf9ea9.0307301052.4de6c47a@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?
Steve C. Orr, MCSD Guest



Reply With Quote

