Create a Custom ASP Error Page
In this tutorial, you will learn how to assign custom errors to common problems that you may experience with your web site and create a centralized error page to display custom errors.Visit publisher site: Create a Custom ASP Error Page
License & Pricing Information
Featured Marketplace Listings
Easy to use star rating system for your website, by pasting 1…
ApPHP Business Directory is a classified script for business listings
Displaying 1-1 out of 1 reviews
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.