473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 3157
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
4
by: Harsh Thakur | last post by:
Hi, I'd like to know the performance related differences between Response.Redirect and Server.Transfer. I'd like to redirect the user to a different page. I can either do a...
13
by: Tim | last post by:
Hello, Is there a way to "cancel" a response.Redirect? For example, in the code below, could I insert anything in the Catch statement that would cancel the redirect and resume flow after the...
1
by: MikeM | last post by:
We are getting a behavior on a Response.Redirect("SomeUrl", True) that I'm hoping someone can explain. This all refers to the code snip at the end. By the way, this is all VB ASP.NET v1.0 code. ...
4
by: news.microsoft.com | last post by:
Hello All, im am new to ASP.NET, so bare with me. i have an application that i am building in stages. stage1 user picks data required stage2 file is written to a virutal directory Stage3...
3
by: Alan Silver | last post by:
Hello, Sorry if this is a stupid question, but I can't really see much difference between these tow methods according to the scant info in the SDK. Could anyone enlighten me? TIA -- Alan...
3
by: wwwmike | last post by:
For some reasons my HTTP Redirect for 404 errors does not work for certain files like .gif .jpg on IIS Version: 5.1, but it works perfectly with the VisualStudio2005 internal webserver ...
2
by: =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= | last post by:
I am not sure if this is the proper forum, but I always found very helpful information here and I would like to have the advice of experts. Just before new year (end Dec 2006), my internet...
3
by: =?Utf-8?B?UGF0UA==?= | last post by:
We have a site that gets many requests for nonexistent pages, files and folders. We want those requests redirected to the index page. However, for static files (i.e. images and some other...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.