Create a Custom ASP Error Page
Publisher
Learn to create a centralized error page to display custom errors.
Product Details
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.
Coupon & Affiliate Theme (New 2022) - Download Now!Sponsored
posted byshopperpressinAffiliate Programs
PriceUSD 99.00
Views7136
User Reviews
Please rate the listing and tell the world know what do you think about the listing.
The code is neat, but......
Reviewed byAnonymousonThu, 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.