4
Reply

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

Manav Pandya

Manav Pandya

Sep 20, 2016
768
1

    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.

    Hariprasad Nagendran
    February 22, 2017
    3

    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.

    Parth Kale
    October 04, 2017
    0

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

    Mukesh Kumar
    September 03, 2017
    0

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

    Mukesh Kumar
    September 02, 2017
    0