4
Reply

What is diffrence between Server.Transfer() vs Response.Redirect() ?

Manav Pandya

Manav Pandya

8y
787
1
Reply

    Response.Redirect can be used for both .aspx and HTML pages whereas Server.Transfer can be used only for .aspx pages and is specific to ASP and ASP.NET. Response.Redirect can be used to redirect a user to an external website.Server.Transfer can be used only on sites running on the same server. You cannot use Server.Transfer to redirect the user to a page running on a different server.

    Response.Reditect() - Can be used for .aspx (web forms) pages as well as HTML pages. We can also use this to redirect to external applications. Server.Transfer() - Mainly works for applications running on the same server.

    server.transfer workes within web forms while response.redirect works with html also

    Response. Redirect use for both HTML& aspx While server. Transfer used in aspx