.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> ");

 

posted @ 2017-10-13 15:44  &慧&  阅读(206)  评论(0)    收藏  举报