This is a paging system for Classic ASP, which also includes Columning with Classic ASP.
Designed by: Wayne Barron / CFF Coding Source
<%If objRs.EOF Then%>
No Data Found
<% Else%>
'Print the recent Data
Showing page
<%=CurrentPage%> of
<%=TotalPages%>: Total of Records:
<%=Number%>
<% Do While Not objRS.EOF And objRS.AbsolutePage = CurrentPage
cellIndex = 0
' Creates the beginning table row tag%>
<%Do While cellIndex < MAX_CELLS_PER_ROW%>
<%itemIndex = 0
Do While itemIndex < MAX_ITEMS_PER_CELL%>
<%=objRs("MyTitle")%>
<%objRS.MoveNext
If objRS.EOF Then Exit Do
itemIndex = itemIndex + 1
Loop%>
|
<%cellIndex = cellIndex + 1
If objRS.EOF Then Exit Do
Loop
While cellIndex < MAX_CELLS_PER_ROW%>
|
<%cellIndex = cellIndex + 1
Wend
' Creates the ending table row tag%>
<%Loop%>
<%End If
'Creating the paging numbers
'Display PREV page link, if appropriate
%>