Microsoft JScript 运行时错误: Sys.WebForms.PageRequestManagerParserErrorException: 无法分析从服务器收到的消息。之所以出现此错误,常见的原因是: 在通过调用 Response.Write() 修改响应时,将启用响应筛选器、HttpModule 或服务器跟踪。
详细信息: 分析附近的“<script>alert('操作成功!”时出错。这是后台代码:
switch (e.CommandName)
                {
                    case "Delete":
                        if (dtbl.DeleteKind(sKindId, "NULL"))
                        {
                            Response.Write("<script>alert('操作成功!');window.parent.frames['I2'].location=window.parent.frames['I2'].location;</script>");
                            DataBind();
                        }

解决方案 »

  1.   

    Response.Write("<script>alert('操作成功!')</script>");
    这样报错吗?我觉得你的Response.Write不会执行。
      

  2.   

    着结贴率。有UpdatePanel ScriptManager.RegisterClientScriptBlock
    无UpdatePanel Page.RegisterClientScriptBlock
      

  3.   

    ScriptManager.RegisterStartupScript(this, this.GetType(), "a","<script>alert('操作成功!');window.parent.frames['I2'].location=window.parent.frames['I2'].location;</script>",false); 
      

  4.   

     Response.Write("<script>alert('操作成功!');window.parent.frames['I2'].location=window.parent.frames['I2'].location;</script>");
     griveview 我记得不支持这种方式
      

  5.   

    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "str", "<script>alert('操作成功!')</script>", false);
      

  6.   

    window.parent.frames['I2'].location=window.parent.frames['I2'].location;
    删除上面这句话试一试