Using RadAjaxManager to exclude a button from being ajaxified

5 posts, 0 answers
  1. Ruben Sutcliffe
    Ruben Sutcliffe avatar
    39 posts
    Member since:
    Dec 2006

    Posted 19 Apr 2008 Link to this post

    I have a page with a few buttons contained in a panel. The buttons will initially be invisible but after some user actions, some of the buttons will be visible. I'm using RadAjaxManager to ajaxify the panel so that the buttons can be visible/invisible.

    But one of my buttons need to trigger a downloading of a file, and I need to do a response.write. I did not ajaxify that button, so I assume that it should do a normal non-ajax postback when clicked but it is not working, because I get an ajax error -

    Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed

    So this means that even though I did not ajaxify that button, but because that button was participating in an ajax response (due to it being invisible then visible) triggered by another control, it became ajaxified??

    I have read your documentation on "Exclude controls from ajaxifying" but that only mentioned using RadAjaxPanel. I am using RadAjaxManager. So how do I make it work?

    I only got this problem with Prometheus, I used to use the Q1 2007 Asp.Net controls and they work fine.

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 21 Apr 2008 Link to this post

    Hello Ruben,

    Please check this example for more info how to achieve this:
    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Manager/PartialPostBacks/DefaultCS.aspx

    Regards,
    Vlad
    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. Ruben Sutcliffe
    Ruben Sutcliffe avatar
    39 posts
    Member since:
    Dec 2006

    Posted 21 Apr 2008 Link to this post

    Thank you, I've done what the example said and added the __dopostback to the onclientclick event of that button. I can now download the file properly.

    but the javascript error still appears. Is there any way I can avoid seeing this error?

        description: "Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near '"Code","Name","Depar'."
        message: "Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near '"Code","Name","Depar'."
        name: "Sys.WebForms.PageRequestManagerParserErrorException"
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 Apr 2008 Link to this post

    Hi Ruben,

    This is a generic ASP.NET AJAX framework error. Please take a look at the following blog post that elaborates on the matter.

    All the best,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Vasudha
    Vasudha avatar
    3 posts
    Member since:
    Dec 2015

    Posted 19 Aug in reply to Ruben Sutcliffe Link to this post

    Hey,

    I am having the exact same problem.

    Can you please sharewhat exactly you have done to avoid the problem?

     

    Thanks

    Vasudha

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017