Like on Facebook Share on Facebook on Twitter Reddit LinkedIn Pinterest
Newest Tips & Tricks...

Home :: Tips & Tricks :: Active Server Pages

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

Recommended Links...