Click here to Skip to main content
15,910,083 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Kindly help me to solve out the difference between these two statements
Response.Redirect("abc.aspx");
and
Server.Transfer("abc.aspx");
Posted

 
Share this answer
 
There are lot more available on google about this.Have a look to the following links
Link 1


Link 2

Link 3
 
Share this answer
 
Hello,
Response.Redirect provides you a roundtrip to the server while server.transfer does not.Also Response.redirect redirects both the html page as well as the aspx page where as the server.transfer transfers the control only to the aspx pages...

This can be explained with the help of following example

say suppose ur in Default.aspx u have entered some data and clicked a button which will redirect u to some other page say Default2.aspx what server.transfer will do here is redesign Default.aspx just like Default2.aspx i.e. it passes all the control present in Default2.aspx to Default.aspx and will show u Default2.aspx into ur browser but if u look at ur url you will find that you are still at Default.aspx but havin a view of Default2.aspx in your browser...

Do rate my answer once you find it useful

Thanks & Regards
Radix :rose:
 
Share this answer
 
Better try this,

http://www.google.co.in/search?q=Response.Redirect+and+Server.Transfer[^]

You'll get lot of articles from Google.
 
Share this answer
 
Perhaps if you want to be a programmer one day, you could consider learning to use google, and/or buying some books.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900