1.
Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language=javascript> alert('恭喜您已成为XX平台的会员!');location.href='main.aspx' </script>");
2.
Response.Write("<script> alert('添加成功!');window.location.href=window.location.href; </script> ");
本文展示了如何在 ASP.NET 中使用 ClientScript 注册 JavaScript 来显示弹窗并进行页面跳转的方法,同时也提供了利用 Response.Write 实现相同功能的另一种方式。
142

被折叠的 条评论
为什么被折叠?



