What is the difference between Server.Transfer and Response.Redirect?
Loading
What is the difference between Server.Transfer and Response.Redirect?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Jul 28, 2022, 11:06 AM
If we want to redirect to external website like google or any other website hosted on any other server from our application then we use Response.Redirect,
for internal pages we use Server.Transfer which also preservers the server state and we don't need to do additional round trips.
Jaydeep PatilPosted Jul 30, 2022, 4:07 AM
Pushpendra ShuklaPosted Jul 29, 2022, 4:36 AM
Response.Redirectsimply tells the browser to visit another page.Server.Transferhelps reduce server requests, keeps the URL the same and, with a little bug-bashing, allows you to transfer the query string and form variables.Vishal YelvePosted Jul 28, 2022, 1:35 PM
Response.Redirect
Server.Transfer
Amit MohantyPosted Jul 28, 2022, 10:39 AM
Server.Transfer processes the page from one page directly to the next page without making a round-trip back to the client’s browser. This way is faster, with a little less overhead on the server. However, it does not update the clients URL history list or current URL.
Response.Redirect, is used to redirect the user’s browser to another page or site. It does perform a trip back to the client where the client’s browser is actually redirected to the new page. The browser history list is updated to reflect the new address.
For more details check the below links
https://www.c-sharpcorner.com/UploadFile/3d39b4/difference-between-response-redirect-and-server-transfer/
https://www.c-sharpcorner.com/UploadFile/0c1bb2/response-redirect-and-server-transfer-in-Asp-Net/
https://www.dotnettricks.com/learn/aspnet/difference-between-responseredirect-and-servertransfer