GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 6 of 165    Print  
What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over the other?

  
Total Answers and Comments: 6 Last Update: October 16, 2005   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Bindu
 
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.

Above answer was rated as good by the following members:
RanjeetaRajendran
March 09, 2005 16:01:00   #1  
       

RE: What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over...
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
 
Is this answer useful? Yes | No
June 26, 2005 12:31:09   #2  
srinivas varukala        

RE: What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over...
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.

 
Is this answer useful? Yes | No
July 04, 2005 04:57:51   #3  
Hector        

RE: What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over...
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!
 
Is this answer useful? Yes | No
July 19, 2005 00:37:26   #4  
Bindu        

RE: What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over...
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.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 21, 2005 00:44:11   #5  
Pritam Baldota        

RE: What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over...
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.

 
Is this answer useful? Yes | No
July 22, 2005 01:46:19   #6  
vvbabu        

RE: What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over...
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

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape