今天心情有點激動,想把"關于用DW ASP實現分頁技術的參考"分享給用DW ASP做網頁的朋友們.去掉只有"第一頁,前一頁,下一頁,最后一頁"的小痛苦 。
此效果最后的顯示是:第N頁[共*頁] <<1 2 3 4 5 6 7 8 9 10 >>。
用DW ASP做網頁時,在綁定記錄集后,代碼頁里馬上出現以下代碼:
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_數據庫名_STRING
Recordset1.Source = "SELECT * FROM 表名"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
新聞熱點
疑難解答