JavaScript 运行时错误: Sys.WebForms.PageRequestManagerParserErrorException: 未能分析从服务器收到的消息。

此问题的解决方案:

Response.Write(""); 改为 Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScript","Response.Write(alert('下单成功!')")
如果你用了ajax控件,则改为 ScriptManager.RegisterStartupScript("使用ajax的控件ID", typeof(System.Web.UI.Page), "aaa", "Response.Write(alert('下单成功!')", false);

你可能感兴趣的:(JavaScript 运行时错误: Sys.WebForms.PageRequestManagerParserErrorException: 未能分析从服务器收到的消息。)