A Caveat When Using ASP's Response.Redirect Method

When ASP encounters the Response or End methods, it immediately halts script execution in both the GLOBAL.ASA file and in the application page.

As a result, ASP won't execute any script that follows the Redirect method. Instead, it either ends the session or begins processing the new page.

For this reason, you should always make the Redirect method the last call in any script.

Source: Mike D. Jones
Viewed 15251 times