110,534
社区成员
发帖
与我相关
我的任务
分享
//在a 页面一个后台的一个查看按钮里写的代码如下:
ClientScript.RegisterStartupScript(GetType(), "js", "window.open(b.aspx','mywindow','toolbars=0,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=0,width=240,height=260;center:yes;');", true);
//当b页面处理完后,写了如下代码:
ClientScript.RegisterStartupScript(GetType(), "js", "alert('修改成功');self.close();", true);
//我是想在当弹出修改成功,点击确定后关闭当前窗体,然后再跳到a.aspx页面.
之前我在self.close();后面加上了parent.location.href='a.aspx'; //没有效
ClientScript.RegisterStartupScript(GetType(), "js", "alert('修改成功');parent.location.href='a.aspx';", true);//这样改了之后还是在b页面.希望高手指点下.