Hi,
What is difference between response.redirect and server.transfer?
thanks.
Loading
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.
Satyapriya NayakPosted Oct 23, 2011, 1:14 AM
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
Prabhu RajaPosted Oct 23, 2011, 12:34 AM
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/
Javeed M ShaikhPosted Oct 22, 2011, 9:19 PM
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.