<%@ language="VBSCRIPT" %> <% option Explicit Response.Expires=0 %> <!--#include file="adovbs.inc"--> <% const intPageSize=10 Dim intCurrentPage,objConn,objRS,strQ,StrConn Dim intTotalPages,IntI If Request.ServerVariables("CONTENT_LENGTH")=0 Then intCurrentPage=1 Else intCurrentPage=CInt(Request.Form("CurrentPage")) Select Case Request.Form("Submit") Case "Previous" intCurrentPage=intCurrentPage-1 Case "Next" intCurrentPage=intCurrentPage+1 End Select End IF Set objconn = Server.CreateObject("ADODB.Connection") Strconn="DRIVER={Microsoft Access Driver (*.mdb)}; " Strconn=Strconn & "DBQ=" & Server.MapPath("infor.mdb") objconn.Open Strconn Set objRS=Server.CreateObject("ADODB.Recordset") objRS.CursorLocation=adUseClient objRS.CursorType=adOpenStatic objRS.CacheSize=intPageSize strQ= "Select * " strQ= strQ & "FROM computer " objRS.open strQ,objConn objRS.PageSize=intpageSize If Not(objRS.EOF) Then objRS.AbsolutePage=intCurrentPage intTotalPages=objRS.PageCount %> <HTML><BODY> <b>Customer:orderDate</b><p> <% For inti=1 to objRS.PageSize Response.Write Server.HTMLEncode(objRS("xinghao") & ":" & objRS("peizhi")) & "<br>" objRs.MoveNext IF objRS.EOF THEN Exit for Next objRS.Close:objConn.Close Set objRS=Nothing:set objConn=nothing %> <br> page<%=intCurrentPage%> of<% =intTotalPages %><p> <form action="<%= Request.ServerVariables("Script_name") %>" method="post"> <input type="hidden" name="CurrentPage" value="<%=intCurrentPage%>"> <% If intCurrentPage>1 Then %> <input type="submit" name="submit" value="previous"> <% End If If intCurrentPage<>intTotalPages Then %> <input Type="submit" name="submit" value="next"> <% End If %> </form> </body></html> 这是所有的代码,为什么点了next之后没反应?~