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

[Solved] Grid AJAX error: PageRequestManagerParserErrorException

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 25 Jul 2013, 05:36 PM
We just went through a pretty large codebase migration, and biggest issue we're having is with our RadGrid's AJAX (paging, dragging and dropping cells, etc.). Any attempt by the grid to use AJAX results in this error:

Sys.WebForms.PageRequestManagerParserErrorException: 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 ' <!DOCTYPE html P'.

Now, I know there's a vast array of reasons for this error to appear, but after trying dozens of fixes I'm hoping to get some assistance narrowing it down to the right one. It seems to me that the error is related to the fact that the server is responding to the AJAX POST request with the entire page (beginning with the DOCTYPE declaration you see above), instead of properly responding with just the grid's updated HTML. Is there any obvious reason for this to occur? Are we missing some sort of configuration option that makes sure the AJAX response only contains the updated HTML that's needed?

Thanks, any assistance would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 30 Jul 2013, 09:48 AM
Hi,

Thank you for contacting us.

In order to assist you further I will need some more information about your project. Could you share your full page source code along with the code-behind file content? Thus I would be able to examine your code and let you know what could cause this behavior.

I am looking forward your reply.

Regards,
Andrey
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 the blog feed now.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or