It is quite easy to find the difference in
Google[
^]. You could have tried that.
Server.Transfer()[
^]: The Transfer method sends all of the information that has been assembled for processing by one .asp file to a second .asp file.
Response.Redirect()[
^]: Any response body content such as displayed HTML text or Response.Write text in the page indicated by the original URL is ignored. In addition, code execution in the current page is terminated when the Redirect method is processed, so subsequent code in the page will also be ignored.
Simple Difference:
Server.Transfer
acts as an efficient replacement for the
Response.Redirect
method.
Response.Redirect
specifies to the browser to request a different page. Because a redirect forces a new page request, the browser makes two requests to the Web server, so the Web server handles an extra request.
IIS 5.0
introduced a new function, Server.Transfer, which transfers execution to a different ASP page on the server. This avoids the extra request, resulting in better overall system performance, as well as a better user experience.
--Amit