有一个跳转方式 window.location.replace("B.aspx"); 这样跳转到B页面,B就无法后退到A了 。
但我把他写成了1个JS方法:
function Turn() {
window.alert("Turing....");
window.location.replace("B.aspx");
}
然后后台用C#去调用这个方法:
protected void Button1_Click(object sender, EventArgs e)
{
this.ClientScript.RegisterStartupScript(this.GetType(),
"key", "<script language='javascript'
type='text/javascript'>Turn();</script>");
}
弹出对话框跳转到B页面,确还能后退,这个问题很恶心,请有经验或者处理过这方面问题的童鞋给予帮助,也请跟我遇到同一问题的童鞋一起围观!