What is difference between Server.Transfer
and Response.Redirect
?
There are many differences as specified above. Apart from above all, there is one more difference. Response.Redirect()
can be used to redirect user to any page which is not part of the application but Server.Transfer()
can only be used to redirect user within the application.
//This will work.
Response.Redirect("http://www.google.com");
//This will not work.
Server.Transfer("http://www.google.com");