.net 执行页面跳转弹窗提示,刷新代码

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> ");
原文地址:https://www.cnblogs.com/huichao1314/p/7661494.html