<asp:UpdatePanel runat="server" ID="p1">
*.cs:
Microsoft.Web.UI.ScriptManager.RegisterStartupScript(p1, this.GetType(), "click", "alert('ok')", true);

需要的朋友可以试试。
转自Jason-Li的BLOG
终于找到了,Ajax 中使用UpdatePanel时,不能弹出对话框的问题。感谢。

相关文章:

  • 2022-02-27
  • 2021-08-26
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-11-03
  • 2021-09-15
  • 2021-09-24
  • 2022-02-07
相关资源
相似解决方案