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.
Multi Vendor Marketplace Script - MartySponsored
posted bySangvishinShopping Carts
PriceUSD 499.00
Views969
Auction Theme: Start your own auction website today. (New 2022) - Download Now!Sponsored
posted byshopperpressinAuctions
PriceUSD 99.00
Views4270
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.