Ajax error handling

6 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 27 Feb 2008 Link to this post

     Rad controls when get some errors (like datasource is null or session expired etc) - where do they throw? How do I catch errors thrown by Rad Controls and do some processing?

    Specially if I am using a AjaxManager in a page and session expires on the server - how do I refresh the whole page and redirect to Login or some other page?

    Thanks,
    Piyush
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 28 Feb 2008 Link to this post

    Hi Piyush,

    Please refer to this article, as well as this one , which describe custom exceptions handling and redirection to another page.
    I hope these resources help.

    Greetings,
    Maria Ilieva
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 28 Feb 2008 Link to this post

    Sure! this helps to know more about the error handling in Rad Ajax.

    As you know in .Net Page_Error and Application_Error get called whenever there is error. And I put the error message in a log file using these methods. But when Rad Ajax errors occur - these events don't seem to get called. And in that case, how do I log to the log file?

    -Piyush
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 29 Feb 2008 Link to this post

    Hi Piyush,

    Please have a look at the resources mentioned by my colleagues so far. You can implement the OnAjaxRequestError event as described log the errors from there.

    Greetings,
    Iana
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 07 Mar 2008 Link to this post

    I do not find OnAjaxRequestError event on the server/client side for AjaxPanel control. I need to have this on the server side and I am using AjaxPanel - let me know how catch errors using this method.

    -Piyush
  7. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 10 Mar 2008 Link to this post

    Hi Piyush,

    You can use the AsyncPostBackError event of the ScriptManager for this purpose. Please, find more details here.

    Kind regards,
    Iana
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017