Difference between Server.Transfer and Response.Redirect

 Posted by Sathya4260 on 1/30/2011 | Category: ASP.NET Interview questions | Views: 6803 | Points: 40

Here i provide the difference between Server.Transfer() and Response.Dedirect().

Server.Transfer() :
1.Server side page navigation no change in url.
2.Rountrip doesnot occurs.
3.Data can be persist across the pages using Context.Item collection
4.Can transfer data from one page to another keeping the page state alive.

Response.Dedirect() :
1.client side page navigation through browser change in url.
2.Roundtrip occurs.
3.client know the physical loation (page name and query string as well). 4.Context.Items loses the persisitance when nevigate to destination page.

So Use server.transfer to navigate within website. And use Response.redirect to redirect to another website.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response