ASP paging code, has been written as a class, it is worth reference

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.