I have 2 pages. One with IG Webtabs and one with JQuery web tabs. I have a button to stream the data to Word. I get a parser error from the WebTab page but not from the JQuery tab page.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; .NET4.0C; .NET4.0E)Timestamp: Fri, 17 Feb 2012 17:32:22 UTC
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.Line: 869Char: 13Code: 0
I have uploaded an image of the streaming C# code and the aspx pages. I have the same stream function on both pages. Why is this happening?
Hey Natalie,
That parser error usually happens when the server returns something unexpected during an asynchronous postback — for example, when exporting or streaming a file like Word from within an UpdatePanel or a control that uses AJAX (like the WebTab).
Since WebTab uses partial-page rendering, the response it sends back isn’t the plain binary stream Word expects — so the browser throws a PageRequestManagerParserErrorException.
PageRequestManagerParserErrorException
You can try handling the export on a separate page or HTTP handler instead of directly inside the tab’s callback. Another option is to disable AJAX temporarily for that specific button click (by setting UseSubmitBehavior="true" or using a normal postback) so the full response with the Word content can be sent.
UseSubmitBehavior="true"
It’s a common issue with file downloads in AJAX environments — jQuery tabs don’t usually trigger partial postbacks, which is probably why it works fine there.
Hope that points you in the right direction!