Where 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 beginning the execution of a new page using the specified URL path of the page.
These methods like Response.Redirect and Server.Transfer has the same syntax like:
Response.Redirect("UserDetail.aspx");
Server.Transfer("UserDetail.aspx");