The code is neat, but......
Reviewed byAnonymouson Thu, 10th January 2002
The code to handle customer errors is neat, but it will solve only one problem. The reason being the respose.redirect must be presented before the HTML is sent to the browser. But in the actual scenario, the error may occur at any point in a page. In this case, it will not get redirected at all. Another thing is, there is no way we can specify the standard error page so that whenever an error occurs at any point in a page, the ASP engine will simply redirect to it.
The only way to solve this is to issue a response.Buffer = true at the top of every page and then whenever an occurs, one can trap it and redirect it to a standard error page by issuing response.redirect followed by response.flush. This will redirect at any point in a page.