DHTML Paging Demo
This demo illustrates how to page database results using client-side DHTML code. Take a
moment to do a View/Source in your browser to see the complete client-side code. This
FAQ lists the 25 most popular FAQs from ASPFAQs.com.
A number of people have reported having problems with Netscape 4.x browsers in viewing this demo.
If you have Netscape 5.0 or greater and have problems, please do let me know.
I have to admit that I am no Netscape expert; I don't even have it installed on my computer. So, you're
at your own on getting this to work with Netscape 4.x. Sorry... (If you have gotten it to work, or know
the code needed, do let me know, and I'll update the |
'Create and populate a Recordset
Dim objRS, objConn, strSQL
Set objConn = Server.CreateObject("ADODB.Connection")
strSQL = "SELECT TOP 25 ViewCount, Description " & _
"FROM tblFAQ ORDER BY ViewCount DESC"
Set objRS = objConn.Execute(strSQL)
'Create an instance of the dhtmlGetRows class
Set objPagedResults = new dhtmlGetRows
objPagedResults.THString = "<th>Views</th><th>FAQ Question</th>"
Set objPagedResults = Nothing
Set objRS = Nothing
Set objConn = Nothing
The above code snippet assumes that the
dhtmlGetRows class is available in a server-side include
dhtmlGetRows.class.asp. To learn more about server-side includes be sure to read:
The Low-Down on
[Return to the article] |
[Download the code for the