1.

What Is The Difference Between Response.redirect() And Server.transfer().

Answer»

Response.Redirect

  • Tranfers the page control to the other page, in other words it sends the request to the other page.
  • Causes the client to navigate to the page you are redirecting to. In http terms it sends a 302 response to the client, and the client GOES where it's told.

Server.Transfer

  • Only transfers the execution to ANOTHER page and during this you will SEE the URL of the old page since only execution is transfered to new page and not control.
  • OCCURS entirely on the server, no action is needed by the client Sometimes for PERFORMANCE reasons, the server method is more desirable

Response.Redirect

Server.Transfer



Discussion

No Comment Found