Response.Write("<script language=javascript>alert('请登录');</script>");
提醒变成Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.Details: Error parsing near '<script language=jav'.

解决方案 »

  1.   


    updatepanel加<Triggers>
      <asp:PostBackTrigger ControlID="控件ID" />
      </Triggers>
      

  2.   


    用了updatepanel...弹框其实在用这个ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "updateScript", "alert('请登录');", true); 
      

  3.   

    ClientScript.RegisterStartupScript(typeof(string),"aa","alert('请登录')",true);
    试试这个
      

  4.   

    ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "updateScript", "alert('请登录');", true); 
      

  5.   

    谢谢各位,还有个问题呀   加完这个后
     ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "updateScript", "alert('请登录');", true); 
                Response.End();
    Response.End();这个没有效果了 为什么呢