Difference between Server.Transfer and Response.Redirect method?

 Posted by vishalneeraj-24503 on 9/4/2014 | Category: ASP.NET Interview questions | Views: 2031 | Points: 40
Answer:

Following are the major differences between them:-

Server.Transfer
1). The browser is directly redirected to another page.
2). There is no round trip.
3). A Server transfer is possible within a website.
4). Information can be preserved in Server transfer through a parameter called preserveForm.

Response.Redirect

1). The browser is requested to redirect to some other page through a message.
2). There is a round trip.
3). Response redirect is possible within two websites too.
4). A state can be maintained in Response redirect but has a lot of drawbacks


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response