Hi
I'm trying to find a simple way to handle all potential unhandled exception raised by the server code, but handle them on the client side.
To handle to the server side, I'm just using OnAsyncPostBackError off the scriptmanager.
To handle to the client side, I did something like that:
I'm trying to find a simple way to handle all potential unhandled exception raised by the server code, but handle them on the client side.
To handle to the server side, I'm just using OnAsyncPostBackError off the scriptmanager.
To handle to the client side, I did something like that:
<script language="javascript" type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args) {
if (args.get_error()) {
var msg = args.get_error().description;
alert(msg);
args.set_errorHandled(
true);
}
}
</script>
Is there a simplier way, like some client event on the RadAjaxManager ?
p.s. : I'm using RadControls for ASP.Net Ajax v 2010.1.519.35