Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

response.redirect

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff User - 23 Mar 2008 04:44 GMT
Hi all

What are the ramifications of either of the possible values for the
[optional] boolean endResponse parameter when calling
Response.Redirect?

If if false, is there some mysterious processing that continues on the
current page?

Normally, when I place a Response.Redirect in my code, I expect
whatever was done at that point to be done, and I expect nothing else
from this code anyway.

thanks
jeff
Anthony Jones - 23 Mar 2008 10:02 GMT
> Hi all
>
[quoted text clipped - 8 lines]
> whatever was done at that point to be done, and I expect nothing else
> from this code anyway.

Yes when false execution of the current page can continue.  There is nothing
mysterious about it.  Respose.Redirect simply sets a different status code
for the response and adds a location header to the response.  In classic ASP
you had not choice that this would also imply an Response.End.   ASP.NET OTH
gives us the option not to end the current execution.

Whilst it would be pointless to continue supplying content to the client
(which will ignore the content and follow the redirect instead) there are
occasions where you need other server side things to happen.

Signature

Anthony Jones - MVP ASP/ASP.NET


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.