What is the difference between Server.Transfer and Response.Redirect ?

 Posted by Bharathi Cherukuri on 2/10/2012 | Category: ASP.NET Interview questions | Views: 3941 | Points: 40
Answer:

Both are objects of ASP.Net and are used to transfer user from one page to another page.

Syntax:

Response.Redirect("Default.aspx");


Server.Transfer("Default.aspx");


Server.Transfer() can directly access the values, controls and properties of the previous page whereas you cannot do with Response.Redirect().


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response