Client side Ajax Exception Handling

2 posts, 0 answers
  1. Alexandre BARBIER
    Alexandre BARBIER avatar
    14 posts
    Member since:
    May 2009

    Posted 13 Dec 2010 Link to this post


    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">




    function EndRequestHandler(sender, args) {



    if (args.get_error()) {



    var msg = args.get_error().description;










    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


  2. Nikolay Rusev
    Nikolay Rusev avatar
    2276 posts

    Posted 14 Dec 2010 Link to this post

    Hello Alexandre,

    This is the way that server errors can be intercepted on client after async postback. RadAjax does not expose API for handling this exceptions.

    Kind regards,
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. DevCraft R3 2016 release webinar banner
Back to Top