Hi,
What is difference between response.redirect and server.transfer?
thanks.
Server.transfer and response.redirect
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 22, 2011, 5:19 PM EDT
Response.Redirect redirects page to another page after first page arrives to client. So client knows the redirection.
Server.Transfer quits current execution of the page. It redirects to the page but the client does not know the redirection as the URL shows the same page url.
Prabhu RajaRank #861 · 2.6K reputationPosted Oct 22, 2011, 8:34 PM EDT
check out this Article to know more about passing Data between Web forms and also can get difference between response.redirect and server.transfer?
http://www.c-sharpcorner.com/UploadFile/suthish_nair/5809/
Satyapriya NayakRank #47 · 31.5K reputationPosted Oct 22, 2011, 9:14 PM EDT
Server.Transfertransfers execution directly to another page.It is faster.
Response.Redirect sends a response to the client and directs the client (the browser) to load the new page (it causes a roundtrip). If you don't need to execute code on the client, Transfer is more efficient.It is slower.
Thanks