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


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

    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?

  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. DevCraft R3 2016 release webinar banner
  4. Pavlina
    Pavlina avatar
    6069 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.

    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