<% 'The following procedure is part of the programming technical article system in my website, highlighting the paging, so other useless code is cleared, you can modify the application' this page program full example, please log in http: // Www.lshdic.com's "Technical Articles" section View on Error Resume Next 'to prevent users from arbitrarily modifying the URL to cause errors if Request.QueryString ("Page") = "" "" "") = "" " ("Page") "The number of pages 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%>