Cool general paging display control (3) display category table

Source: Internet
Author: User
Now, we can further display the category table so that users can select different categories to view different content. How can this problem be solved?
We can consider this as follows:
1. Select a category as a query
2. To save page space, place the category in the drop-down list box and provide the "all categories" item so that you can view all the information.
Therefore, we put the category in query. inc.
In addition, we put theScript, myconnstr, and thePageSize into function. inc, so that the page structure looks more reasonable.
Note that the getScriptName () function retrieves the ASP name from the file name. The add, delete, edit, and view values after the file name are used as system keywords and filtered. For example:
TheActionScript = getScriptName ("sample_edit.asp ")
TheActionScript value is "sample"
In this way, we can use different files to add, delete, modify, and delete a table. For example:
List_add.asp add record
List_delete.asp delete
List_edite.asp modification
List_view.asp view
In the next chapter, we will use theActionScript, and you will find that with it, many functions can be summarized and merged.
See sample3.asp.

<1> ASP files to be paged
<! -- # Include file = "../inc/functions. inc" -->
'/////////////////////////////////////// ///////////////////
'Define the table name
'/////////////////////////////////////// ///////////////////
TheTableName = "addressbook"
'/////////////////////////////////////// ///////////////////
'Query condition
'/////////////////////////////////////// ///////////////////
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.