You could use the Application_Error event in the global.asax file to capture
the event and use Server.GetLastError to get the particular error. You
could then use ClearError to clear out the error and redirect to a custom
page. You can also accomplish the same thing, as far as redirection, from
the web.config file.
--
Eric Marvets
Principal Consultant
the bang project
<shameless self promotion>
Email
sa***@bangproject.com for Information on Our Architecture and
Mentoring Services
</shameless self promotion>