| |
GeekInterview.com > Interview Questions > Microsoft > ASP
| Print | |
Question: What is the difference between server.trasfer, server.execute and Response.redirect? Is Response.trasfer is valid in ASP.
|
| March 03, 2007 06:09:39 |
#1 |
| rashmi |
Member Since: Visitor Total Comments: N/A |
RE: What is the difference between server.trasfer, ser... |
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. |
| |
Back To Question | |