I learned an ASP paging today, and I also share it with you !! <% 'The following procedure is part of the programming technology article system in my website, highlighting the paging, so other unique code is cleared, you can modify Application 'This page program has a complete example of this page, please log in to my website http://www.lshdic.com' "" THEN PAGE = 1: ELSE: Page = CINT (Request.QueryString ("Page") "Page number in the URL Page =?
Set link1 = server.createObject ("adoDb.connection") 'connection database link1.open "provider = microsoft.jet.oledb.4.0; data source =" & server.mappath ("Database 1.mdb") SET RS = Server .CreateObject ("AdoDb.Recordset") rs.open "Select * from Table 1", link1, 1, 1 'These definition records of cursors and recordings of each page and current page settings, very important rs.pagesize = 12rs.absolution = pageif err.Number <> 0 THEN 'prevented users from maliciously modifying URLs, and database-free error response.write "exception error" Response.Endend IF%>