Run Javascript After Postback

3 posts, 0 answers
  1. James
    James avatar
    55 posts
    Member since:
    Oct 2011

    Posted 20 May 2013 Link to this post

    Hi,

    I am attempting to use the technique outlined in this article:

    http://www.telerik.com/help/aspnet-ajax/ajax-execute-custom-javascript.html

    However, I am getting this error:

    Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object. 

    I suspect that the error might be because the AjaxRadManager event is triggered from a button click where the button is located inside a RadWindow.  However, with this RadWindow, we are using a ContentTemplate.  So, to me, that means that the code run from controls is being run from the parent page (if I understand the hierarchy senario correctly).

    Any recommendations?

    Jim
  2. James
    James avatar
    55 posts
    Member since:
    Oct 2011

    Posted 21 May 2013 Link to this post

    As sometimes happens, as I prepared a sample project to display that problem, I found my error.  I simply had an un-trapped error occurring just before I tried to run my JS.  After I fixed the error, this procedure worked perfectly.  Thanks for the help!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 23 May 2013 Link to this post

    Hello James,

    I am glad that you were able to resolve the problem on your own. If other questions or problems arise, do not hesitate to write us back in the support ticket you have opened on the matter.

    Regards,
    Pavlina
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top