IT Community - Software Programming, Web Development and Technical Support

What is the difference between Server.Transfer and Response.Redirect? Why would I cho

This is a discussion on What is the difference between Server.Transfer and Response.Redirect? Why would I cho within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, can anyone tell,What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-18-2007, 06:48 AM
prasath prasath is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Location: Chennai
Posts: 173
prasath is on a distinguished road
Thumbs up What is the difference between Server.Transfer and Response.Redirect? Why would I cho

Hi,
can anyone tell,What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

Thanks,
Prasath.K
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-19-2007, 02:41 AM
Gopisoft Gopisoft is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Posts: 117
Gopisoft is on a distinguished road
Default Re: What is the difference between Server.Transfer and Response.Redirect? Why would I

Response.Redirect sends Message to the Browser to redirect to the Page we wish to navigate .
Server.Transfer Directly redirects to that Page.

So round trip to the Client is avoided in the Server.Tranfer Method

Also In server.Transfer method there is a Property called PreserveForm which enables us to Preserve the Form details form where we navigated .

But in Response.Redirect Method, There is no connection between the Requested Page and the Routed Page.Thought there is a option to maintain the State it is Very tedious since we have to use the Session Varaiable to obtain state.

Server.Transfer Method can redirect to the Page within the Web server Itself.

But Response.Redirect can redirect to different servers.

So if we want to navigate within the Web server, Server.Transfer Is the best.If we want to redirect to other Server Response.Redirect is the Best
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The server rejected one or more recipient addresses. The server response was: 550 5.7 poornima ASP and ASP.NET Programming 7 02-29-2008 01:07 AM
What is the difference between Server.Transfer and Response.Redirect?.. H2o ASP and ASP.NET Programming 4 11-22-2007 05:25 AM
Difference between Server.Transfer and Response.Redirect Arun ASP and ASP.NET Programming 4 09-19-2007 10:52 PM
example of Server.Transfer and Context Handler hanusoft ASP and ASP.NET Programming 1 09-06-2007 07:08 AM
If I use Response.Redirect in try block exception occurred in c#, Why? kingmaker C# Programming 1 07-19-2007 04:51 AM


All times are GMT -7. The time now is 08:37 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0