ASP.NET AJAX WebForms custom error handling question
Posted
by Vilx-
on Stack Overflow
See other posts from Stack Overflow
or by Vilx-
Published on 2009-01-12T09:53:25Z
Indexed on
2010/05/18
20:30 UTC
Read the original article
Hit count: 271
I've made a web application that has the following architecture: Every form is a UserControl, there is just one actual page (Default.aspx), and a parameter in the URL specifies which UserControl to load. The UserControl is loaded in an UpdatePanel so that it can enjoy full AJAX-iness.
There is also an elaborate message displaying mechanism that I use. Eventually messages end up in one designated area on top of the Default.ASPX with some nice formatting 'n stuff.
Now, I would also like to capture any unhandled exceptions that originate in the UserControl and display it in this area with all the bells-and-whistles that I've made for messages.
How can I do this? The Page.Error and ScriptManager.AsyncPostBackError somehow don't work for me...
© Stack Overflow or respective owner