home navigator pointer resources navigator pointer asp tips navigator pointer server.transfer
The definitive ASP tips page
tips menu | printable single page version

Note: this is my old ASP tips page and is no longer supported. See the new Visualize web site..

ASP Coding for Performance - Replace Response.Redirect with Server.TransferIIS5/Windows 2000 tip

It is often useful to redirect to a different page from within your script. In IIS4 and ASP2 you would typically use response.redirect to do this. This would send a response to the browser to instruct it to request the new page - thus the browser has essentially made two page requests to the server.

IIS5/ASP3 improves on this, by providing a server-side approach to redirection, namely server.transfer, by transferring execution immediately to another page directly, avoiding the "extra round-trip" approach in IIS4. Much more efficient.

 

DISCLAIMER: Note these pages are a free resource for anyone wishing to reference them. Although every care is taken to ensure their correctness, the author takes no responsibility for any errors or problems that may occur through their use, or indeed misuse. These pages are copyight of Dave Clarke, Visualize Software Ltd 1997-2000 (all rights reserved).


 


© Copyright Dave Clarke, 1996-2008