Illustrate Server.Transfer and Response.Redirect?

 Posted by Puneet20884 on 1/5/2010 | Category: OOPS Interview questions | Views: 6222
Answer:

Server.Transfer, transfers the control of a web page, posting a form data, while Response.Redirect simply redirects a page to another page, it can not post a form data to another page. Server.Transfer is more efficient over the Response.Redirect, because Response.Redirect causes a round trip to server as the page is processed once again on the client and a request is made to server there after.
But the browser url is not changed in case of Server.Transfer i.e. Browser history is not modified in using it.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response