三、Bookmark/MoveNext/MovePrevious例子
让我们看一个ASP程式码当中使用Bookmark/MoveNext/MovePrevious做到上一条下一条功能的例子。
譬如ASP程式码rs15.asp如下:
<%
Set conn1 = Server.CreateObject("ADODB.Connection")
conn1.Open "DBQ="& Server.MapPath("ntopsamp.mdb") &";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;"
Set rs2 = Server.CreateObject("ADODB.Recordset")
SqlStr = "SELECT * From 着作"
rs2.Open SqlStr,conn1,1,1
BkStart = rs2.Bookmark
BkEnd = rs2.Bookmark + rs2.RecordCount - 1
rs2.Mo...[ 查看全文 ]