Response.Redirect vs. Server.Transfer

Question posted in Computer\IT Services on 08 2009
Rate question difficulty level 0 Votes
What is the difference between Server.Redirect and Response.Transfer?
 
 
1 Answer
 
Server.Redirect


  • Maintains the original page's url in the browser
  • Saves http requests to the server since the move to the new page is done on the server side
  • Only transfers to aspx or asp files, not html files

Response.Redirect



  • Performed on the client side - the url in the browser will change
  • Makes extra roundtrips to the server - from the original request and from the redirection request done at the client side
  • Works on both html and aspx files

08/11/2009
 
 
Add an answer*
 
Your name
Email
 
Location: United States
asp.net c# server response

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
Mercer 
---------------------------
---------------------------
---------------------------