①html的button控件,
<input οnclick="history.go(-1)" type="button" value="Button">
注意onclick事件,简单吧.
ASP.NET同过它进行了下面两种方式的演化
②
在Page_Load事件里,为Button添加属性
Button1.Attributes.Add("onclick","history.go(-1);
return false;")
不知道return false有啥子鸟用! 有懂的指点下,我代码是抄过来的....
③通过写输出脚本
Response.Write("<script>history.go(-2);</script>");
-1是返回到当前页
④页面传值时带参数
我们假设:A→B→A
A:Response.Redirect("B.aspx?AXzhz="A.aspx"");
B:string s=Request.QuseryString["AXzhz"];
Response.Redirect(s);
多页面重定向到同一页面后再返回之四巧手_AX
最新推荐文章于 2023-02-09 10:57:12 发布