Sep 09, 2008, 6:34 PM
[CLOSED] AjaxEvents and Exception
Hello,
Would it be possible to throw an exception from an AjaxEvent and capture it on the UI?
For example; if I clicked my button:
Cheers,
Timothy
Would it be possible to throw an exception from an AjaxEvent and capture it on the UI?
For example; if I clicked my button:
<ExtJS:Button ID="btnAddCustomer" runat="server" AutoPostBack="False" Text="Add Customer" SkinID="Default">
<AjaxEvents>
<Click OnEvent="btnAddCustomer_Click" />
</AjaxEvents>
</ExtJS:Button>
And code behind:protected void btnAddCustomer_Click(object sender, AjaxEventArgs e)
{
throw new Exception("Hello World");
}
Would be similar to how you currently handle exceptions with the GridPanel :)Cheers,
Timothy