用Javascript:history.back();<button onclick="Javascript:history.back()">返回</button>--------------------------------
AspNetPager 免费分页控件4.2版发布,同时发布最新源代码,欢迎下载:http://www.webdiyer.com

解决方案 »

  1.   

    在按钮的click里面这样就行了response.redirect("页面")
    他们说是都是用jsp做的。。
    我jsp不会,只会用asp.net 里的办法做了
      

  2.   

    在button的click事件中加下面的代码 :    
            Dim pagepath As String
            pagepath = "b.aspx"
            Dim strscript As String
            strscript = "<script language=javascript>" & vbCrLf
            strscript = strscript & vbCrLf & "var win=window.open(" & """" & pagepath & """" & "); "
            strscript = strscript & vbCrLf & "win.focus();"
            strscript = strscript & "</script>" & vbCrLf
            Me.ltlSearch.Text = strscript             'ltlSearch is literal webcontrol        是直接在我的程序里拷贝来的,你修改一下吧:)
      

  3.   

    ==>谢谢,不过还有没有别的方法呢?因为我还想在这个按钮被点击的时候执行别的代码。你还想执行什么别的代码呢?如果是服务器端代码,那是不行的,因为点击这个按钮会先引发客户端事件,也就是后退到前一页了,根本不会发回服务器去了,服务器端代码也就不能运行了。如果是客户端代码,你可以把它加在我那个方法的前面,比如你还要执行一个Function1和Functon2函数,可以这样加:
    <button onclick="Javascript:Function1();Function2();history.back()">返回</button>