添加成功关闭层

 

Page.RegisterStartupScript("success", "<script>alert('添加成功');parent.window.location='ProductManager001.aspx';parent.closeEditor();</script>");  //代码过时

//实用
parent.window.location='UrlSeoList.aspx' 适合跳转时用到的语句
ClientScript.RegisterStartupScript(this.GetType(), "myscript", "<script>alert('新增成功');parent.window.location='UrlSeoList.aspx';parent.closeEditor();</script>");


window.location.href='FrindLink001.aspx' 适合当前页面使用
ClientScript.RegisterStartupScript(this.GetType(), "myscript", "<script>alert('删除成功');window.location.href='FrindLink001.aspx';</script>");

你可能感兴趣的:(添加成功关闭层)