Asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Swati walia
    Senior Member
    • Sep 2016
    • 108

    Asp.net

    What is the Difference between Response.Redirect and Server.Transfer?
  • Guest

    #2
    The Response.Redirect method redirects a request to a new URL and specifies the new URL while the Server.Transfer method for the current request, terminates execution of the current page and starts execution of a new page using the specified URL path of the page.

    Comment

    • priya.sharma
      Senior Member
      • Aug 2016
      • 105

      #3
      In case of Response.Redirect, a new request is generated from client-side for redirected page. It's a kind of additional round trip. As new request is generated from client, so the new URL is visible to user in browser after redirection.

      While in case of Server.Transfer, a request is transferred from one page to another without making a round trip from client. For the end user, URL remains the same in browser even after transferring to another page.

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎