"David" <da*********@scene-double.co.ukwrote in message
news:11**********************@j27g2000cwj.googlegr oups.com...
Hi,
Is there a general way of placing an 'error_check' include file into
my website, and put the include line onto all 'asp' pages. In the
event that any error occurs on any asp page or with the database,
instead of the user seeing the error on screen, they would be
redirected to a custom error page ?
Apprecaite your help
Thanks
David
Create your custom error page and then use the Custom Errors tab on the Web
sites properties dialog to edit the 500;100 handler. I tend to use a URL
for an ASP page however you can also specify simple htm file.
Note you can use Server.GetLastError object in a handler page to embedded
some error details in the output. You could use a display:none DIV to place
these technical details and use a 'Display Technical Details' button on the
page.