The message received from the server could not parsed

3 posts, 0 answers
  1. Stan
    Stan avatar
    36 posts
    Member since:
    Feb 2011

    Posted 09 Jan 2012 Link to this post

    Here is what I am doing:

    RadGrid has a GridButtonColumn. When column hyperlink is clicked (OnItemCommand) I do among other things Response.Wirte and it blows up inside Telerik client code with famous error:

    Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when ....

    What is workaround for this? I believe it has to do something with making hyperlinks to do postback, right?

    -Stan

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 10 Jan 2012 Link to this post

    Hello,

    I think that the information from these public forum posts will help you deal with the exception you received:
    http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/intermittent-pagerequestmanagerparsererrorexception.aspx
    http://www.telerik.com/community/forums/aspnet-ajax/ajax/384580-radscriptmanager-error.aspx

    Greetings,
    Pavlina
    the Telerik team
    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
  3. Stan
    Stan avatar
    36 posts
    Member since:
    Feb 2011

    Posted 10 Jan 2012 Link to this post

    No, in my case it was caused by partial rendering in the grid and hyperlinks doing Response.Write and it appears that the solution for that is:

    ScriptManager sm = ScriptManager.GetCurrent(this.Page);
     if (sm != null)
     {
         sm.RegisterPostBackControl(ResultsGrid);
     }
Back to Top