ASP common Paging Class
The attributes and methods of a class
This is an ASP common paging class. You can use it to easily page the recordset, of course, there are many paging classes and paging functions on the web. This page includes properties and methods such as Conn, SQL, URL, FieldList, PageSize, Template, Init, show, close, and so on.
1.Conn property: Used to get a created connection object.
2.SQL Properties: Automatically create a Recordset object based on incoming SQL statements
3.PageSize Property: Set the number of record bars on page
4.FieldList properties: Be sure to set this property if you want to display the data in the library. It is used to get the correct field name that needs to be displayed.
5.URL Property: Sets the file address of the link in the pagination bar.
6.Template property: Sets the template for the paging file.
7.Init Process: page-class initialization data.
8.Show process: Displaying data.
9.Close process: End of pagination class
All code from this download
Second, the class source code (inc_clspage.asp)
<%
'/************************************************
'* *
' * name:asp pagnation class *
' * AUTHOR:CJJ *
' * version:v2.8 *
' * time:2004-01-16 *
' * Comefrom:/*
' * Homepage:none (Maybe Soon) *
' * Notice:you can use and modify it freely, *
' * BUT please HOLD this ITEM. *
' * If you modify it which I hope you *
' * can send a mail for me. *
'* *
'************************************************/
' ######## #声明变量 #########
' Define the display type of the link
Const Sw_intshowchinese = 0 ' Chinese characters, such as "previous page, next page"
Const sw_intshowenglish = 1 ' English, such as "Back, Next"
Const Sw_intshowcharacter = 2 ' special characters
' Define the display type of the data
Const sw_inthorizontalview = 0 ' Horizontal
Const Sw_intverticalview = 1 ' Vertical row