asp后置代码页面跳转问题?
首先我在RoleMana页面点击添加角色的连接弹一个网页对话框:
window.showModalDialog('RoleManager/AddUserRole.aspx','添加角色','toolbars=0;scrollbars=0;menubar=0;location=0;status=0; dialogwidth=310px;dialogheight=250px');
然后在AddUserRole.aspx这个页面有两个文本框和一个服务器的按钮,在后置代码我处理添加角色功能后我要弹出对话框、并且要关闭当前页面,还要刷新RoleMana页面,
我是这样的
this.ClientScript.RegisterStartupScript(this.GetType(), null, "alert('添加成功!');window.close();window.location.href='../RoleMana.aspx';", true);
可以这个页面关闭不了,在360浏览器上也不能刷新RoleMana.aspx页面!