I spotted the following code on the microsoft website, relating to JSP:


Can this be done in ASP.NET? I want to send users to a specific page dependant
on the type of Exception that's been thrown. I have a number of different
exceptions defined within in ASP.NET application, such as SiteUserSecirityException
- i want instances of this, to be dealt with say by securityError.aspx.

Is this possible?


Ben Merrills