-
Trapping specific exceptions using web.config
I spotted the following code on the microsoft website, relating to JSP:
<error-page>
<exception-type>exception.OrderException</exception-type>
<location>/errorpage.html</location>
</error-page>
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?
Thanks,
Ben Merrills
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks