public void alert(string msg, string key)
    {
        ClientScriptManager csm = Page.ClientScript;
        Type cstype = this.GetType();
        msg = msg.Replace("\"", "\'");
        string script = "<script type=\"text/javascript\">alert(\"" + msg + "\")</script>";
        csm.RegisterStartupScript(cstype, key, script);
    }

   public void alert(string msg, string key)
    {
        ClientScriptManager csm = Page.ClientScript;
        Type cstype = this.GetType();
        msg = msg.Replace("\"", "\'");
        string script = "alert(\"" + msg + "\")";
        csm.RegisterStartupScript(cstype, key, script, true);
    }

相关文章:

  • 2022-12-23
  • 2021-06-28
  • 2021-05-18
  • 2021-09-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-20
  • 2021-06-08
  • 2021-10-06
  • 2021-09-03
  • 2021-11-14
  • 2022-01-05
  • 2022-12-23
相关资源
相似解决方案