What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over the other?

Showing Answers 1 - 6 of 6 Answers

Guest

  • Mar 9th, 2005
 

Server.transfer("path") - sends all of the information that has been assembled for processing by one .asp file to a second .asp file.Response.redirect() - redirects u to another .aspx page., with any session variables values

  Was this answer useful?  Yes

srinivas varukala

  • Jun 26th, 2005
 

Response.Redirect() needs 2 http requests or contacts with the server. 
whereas, Server.Transfer() needs only one..the redirection is done on the server side.

  Was this answer useful?  Yes

Hector

  • Jul 4th, 2005
 

Yeah,the server.transfer() only need the server transfer the request and the session data to the destination page,where as response.redirect() will let your browser to request the new page,and the session not shared to the new page!

  Was this answer useful?  Yes

Bindu

  • Jul 19th, 2005
 

Server.Transfer transfers page processing from one page directly to the next page without making a round-trip back to the client's browser. This provides a faster response with a little less overhead on the server. Server.Transfer does not update the clients url history list or current url. Response.Redirect is used to redirect the user's browser to another page or site. This performas a trip back to the client where the client's browser is redirected to the new page. The user's browser history list is updated to reflect the new address.

Pritam Baldota

  • Jul 21st, 2005
 

Server.Transfer() is used to transfer data between two different pages on the same server and the performance is fast than response.redirect. 
 
Response.redirect is used to transfer the control to another page residing at another server.

  Was this answer useful?  Yes

vvbabu

  • Jul 22nd, 2005
 

Response.Redirect is used to redirect the user to another page or site. 
 
Server.Transfer is used to post a form to another page. 
Server.Transfer Method directly transfers control and Session State anotherpage with out making a Client RoundTrip

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions