在ASP.NET 2中实现返回上一页的功能如下:
1、如果用HTML控件如下:
<input type="button" οnclick="javascript:window.history.go(-1);"value="返回上一页">
2、如果是ASP.NET标准控件如下(以按钮为例):
Button1.Attributes.Add("onclick",="javascript:window.history.go(-1);");
在ASP.NET 2中实现返回上一页的功能如下:
1、如果用HTML控件如下:
<input type="button" οnclick="javascript:window.history.go(-1);"value="返回上一页">
2、如果是ASP.NET标准控件如下(以按钮为例):
Button1.Attributes.Add("onclick",="javascript:window.history.go(-1);");