100求一页面导航问题
//页面A按保存按钮后执行
//提示保存成功
this.Page.RegisterStartupScript("ErrorInfo","<SCRIPT language=JavaScript>alert('保存成功!');</script>");
//关闭页面A
this.Page.RegisterStartupScript("ErrorInfo","<SCRIPT language=JavaScript>window.close();</script>");
//打开页面B
this.Page.RegisterClientScriptBlock("ErrorInfo","<SCRIPT language=JavaScript>window.open('DBApply.aspx?....script>");
我想实现的是用户确认以后,A关闭,B出现.
问题是上面的代码执行后页面B出现在了A的后面,A不关闭
将this.Page.RegisterClientScriptBlock换成this.Page.RegisterStartupScript
页面A不关闭,页面B也不出现
将this.Page.RegisterClientScriptBlock换成Response.Write,页面A不关闭,B不出现