chinese:
Sys.WebForms.PageRequestManagerParserErrorException:
The message received from the server cannot be parsed. The common reason for this error is that response filters, httpmodules, or server tracing will be enabled when the corresponding message is modified by calling response. Write().
Details: error parsing nearby output.
The solution is as follows:
1. If the server control calling the response. Write() method is on the page using the UpdatePanel, you only need to add a node under the UpdatePanel and register the control with postbacktrigger. The code is as follows:
- < asp:ScriptManager ID= “ScriptManager1” runat=“server”>& lt;/ asp:ScriptManager>& lt; asp:UpdatePanel ID= “UpdatePanel1” runat=“server”> & lt; asp:PostBackTrigger ControlID= “Button2” />
< asp:Button ID= “Button2” runat=“server” OnClick=“Button2_ Click” Text=“Button” />& lt; asp:UpdateProgress ID= “UpdateProgress1” runat=“server”>& lt;/ asp:UpdateProgress> & lt;/ asp:UpdatePanel> ol>
2. However, if the UpdatePanel is used in the master page, the above methods cannot be used to solve the problem. Otherwise, the following error may appear:
A control with ID ‘btnExport’ could not be found for the trigger in UpdatePanel ‘UpdatePanel1’.
This is mainly because updatepanel1 cannot be found & lt; asp:PostBackTrigger ControlID= “btnExport” /> Because we generally do not add this control (btnexport) to the master page( Of course, if a control with ID btnexport is added under the node of the UpdatePanel, there will be no error.)
If there is such an error, what should I do?My solution is to use the page of the control page where the response. Write() method is needed_ Add the following code to the load event:
((ScriptManager) master. Findcontrol (“scriptmanager1”)). Registerpostbackcontrol (btnexport)
// scriptmanager1 is & lt; asp:ScriptManager ID= “ScriptManager1” runat=“server”> & lt;/ asp:ScriptManager> ID of
Reprint address: http://www.cnblogs.com/shenyixin/archive/2012/03/08/2385376.html
Read More:
- TIDB-kafka server: Message was too large, server rejected it to avoid allocation error
- Insufficient table space ORA-00604 unable to extend table SYS.AUD by 8192
- Vs fatal error C1083: unable to open include file: “sys / socket. H”: no such file
- Error in installing pywin32 under Windows: close failed in file object D estructor:sys.excepthook is missing lost sys.stderr
- About WLW (Windows Live Writer): “unable to connect to your log service: invalid server response” solution
- PHP under linux uses pdo-dblib to connect to mssql to report an error solution. Error message: SQLSTATE[01002] Adaptive Server connection failed (severity 9)
- JRebel: ERROR Failed to obtain seat. Unable to connect to license server. Check
- OpenGL configuration file, as well as unable to parse the file solution
- The MySQL service suddenly hangs up with the error message can’t connect to MySQL server on ‘localhost’ (10061)
- SFTP login error: fatal error: received unexpected end of file from SFTP server
- [Solved] failed to connect to server, reason: Unable to establish connection
- E: unable to locate package MySQL server error solution
- SQL Server 2008 18456 error and SA unable to login solution
- SQL Server 2005, unable to log in, forget sa password, 15405 error!
- Ubuntu reads the shared folder under windows Unable to mount location Failed to retrieve share list from server
- Unable to install SQL Server (setup.exe), VS Shell installation has failed with exit code 1638.
- Resolve the idea error unable to Ping server at localhost: 1099 exception
- 【ORA】Error 1031 received logging on to the standby
- When MySQL is running, the server suddenly goes down, which causes Mysql to be unable to restart
- SQL Server import MDF and LDF files appear: unable to open physical file “D:\ XX.mdf “。 Operating system error 5: “5 (access denied. )”Solutions