It is fairly simple really.
At its most basic level you would do something like:
xml Code:
<customErrors mode="On|Off|RemoteOnly" />
On means that everyone will see a generic error page if an exception is thrown.
Off means that a detailed error message will be displayed to users.
RemoteOnly means that users will see a generic error but when accessing the site from the server a detailed error message is displayed. Typically On or RemoteOnly are the best options for production websites.
Now, if you want to do a specific "thing" when a certain error occurs you could do something like this
xml Code:
<customErrors mode="On|Off|RemoteOnly" defaultRedirect="MyGenericErrorPage.htm">
<error statusCode="500" redirect="MyInternalServerErrorPage.htm" />
</customErrors>
hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library:
Wrox Books 24 x 7
Did someone here help you? Click

on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================