What is the difference between server.trasfer, server.execute and Response.redirect?Is Response.trasfer is valid in ASP.

Questions by jibijoseph

Showing Answers 1 - 6 of 6 Answers

rashmi

  • Mar 17th, 2007
 

server.execute stops the execution of the current page and transfers the control to the URL passed in as a parameter. After that page has finished execution control passes back to the original page and execution resumes at the statement after the execute method call.

server.transfer is similar to server.execute but unlike that methos the execution does not resume to the original page but end when the new page completes executing

response.redirect transfers the control to the given url but there is server round trip.
In response.redirect the  new url can be seen , but in server.execute and transfer the new page url is not seen even though the control is passed to the new page.

Performance is better in server.execute and transfer nut they cannot be used with server-side include #exec directive.

Prabhu Jayaraman

  • Mar 24th, 2007
 

Rashimi Answer is Right
Server.Execute -- is like sub function.. you cant return values from tht page.
Server.Transfer -- This can be done only in Local System. and when you use Server.Transfer tht url page will not be stored in history.
Reponse.redirect-- Ths is just passing the user from one page to another page.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions