Execute to Response.Write ("XX") in ASP. or Microsoft JScript run-time error: Sys.WebForms.PageRequestManagerParserErrorException : The message received from the server could not be parsed. The common reason for this error is that response filters, HttpModule, or server traces are enabled when you modify the response by calling Response.Write ().
When UpdatePanel is placed, first add to </UpdatePanel> before
<triggers><asp:asyncpostbacktrigger controlid= "Timer1"/></triggers> try, if it is set up Postbacktrigger It is not possible to Response.Write (); Normally, Microsoft recommends that we use this:
String scripts = "<script>alert (' pop-up prompt box! ');</script> ";
ClientScriptManager CSM = page.clientscript;
CSM. RegisterClientScriptBlock (this. GetType (), "SSS", scripts, false);
//CSM. RegisterStartupScript (this. GetType (), "SSS", scripts,false);
If it doesn't work, you can use it specifically for the UpdatePanel control:
Scriptmanager.registerstartupscript (this. UpdatePanel1, this. GetType (), "Updatescript", "alert (' Not logged in!") '); ", true);
All you need to do is alert (' Not logged in! Change to the script you want to output!
Reference: http://wangyali90516.blog.163.com/blog/static/117205101201083025730557/
Asp. NET use of UpdatePanel when using the response output error resolution method