This is a migrated thread and some comments may be shown as answers.

The message received from the server could not parsed

2 Answers 372 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stan
Top achievements
Rank 1
Stan asked on 10 Jan 2012, 12:00 AM
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 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 Jan 2012, 08:53 AM
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
0
Stan
Top achievements
Rank 1
answered on 10 Jan 2012, 03:38 PM
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);
 }
Tags
Grid
Asked by
Stan
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Stan
Top achievements
Rank 1
Share this question
or