ASP.NET supports Page_Error()

If one’s C# code throws an exception that isn’t explicitly caught by any try/catch, then  one can use ASP.NET’s Page_Error() method as a fallback…it’s invoked for all such thrown exceptions.  The default implementation just pops an error dialog.

Print Friendly, PDF & Email