Response.Redirect:-
- Response.Redirect sends message to the browser saying it to move to some different page.
- use Response.redirect to redirect to another website.
- we do not need to preserve Query String and Form Variables from the original request.
- Response.Redirect() can be used for both .aspx and .html pages
Server.Transfer:-
- Server. Transfer does not send any message to the browser but rather redirects the user
directly from the server itself. - Use server.transfer to navigate within website
- we want to preserve Query String and Form Variables (optionally)
- Server.Transfer() can be used only for .aspx pages and is specific to ASP and ASP.NET.
No comments :
Post a Comment