使用如下形式

ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "alert", "alert('删除成功!');", true);

 

代替如下形式:
 Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script>alert('删除成功!');</script>");

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案