Me Myself & C#

Manoj Garg’s Tech Bytes – What I learned Today

Posts Tagged ‘AJAX’

Fixing Sys.WebForms.PageRequest ManagerParserErrorException in AJAX

Posted by Manoj Garg on July 3, 2008

Recently I came across a problem where my aspx page was throwing an exception

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’

after some googling lightbulb found following article by Eilon Lipton

http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx

While goin through this article the reason why I was getting that exception.

Actually I has a page which had an UpdatePanel and a ASP Button control on clicking of which I wanted to load another aspx page in the same masterpage. for this what I was using Server.Transfer, which was actually causing the problem. After I replaced the Server.Transfer with Response.Redirect. I got through and it saved lots of my time. thumbs_up

Ha-P Coding.. smile_teeth

Posted in ASP.Net | Tagged: , , | 2 Comments »