ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "CheckName", "alert('词典名称不允许为空,请您填写');", true);    如果页面中含有updatePanel,用这种方式
 Response.Write("<script>alert('词典名称不允许为空,请您填写');</script>");   不说了,不太好用
 ClientScript.RegisterStartupScript(this.GetType(), "script", "<script>alert('词典名称不允许为空,请您填写')</script>");         现用方法,比较好用

RegisterStartupScript("", "<script type='text/javascript'>displays();</script>"); 调用JS文件里函数的方法

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
猜你喜欢
  • 2021-07-25
  • 2021-09-12
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
相关资源
相似解决方案