Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  




           


Sys.WebForms.PageRequestManagerParserErrorException
Using Response.Write or BinaryWrite in an update panel postback caused a Sys.WebForms.PageRequestManagerParserErrorException.

I needed the update panel because there were some buttons that needed to post back async, and others that just needed to use Response.Write to download a file.

The solution was to add the following section to the update panel:

< Triggers>
< asp:PostBackTrigger ControlID="btnResponseWrite" />
< /Triggers>

This this allows the specific button to write out to the Response using a normal postback. All other unspecified buttons will default to the Asycn behavior.

Created By: amos 12/6/2011 5:25:27 PM
Updated: 12/6/2011 5:25:33 PM