Asp. NET handles data paging in a browser

Source: Internet
Author: User

In the ASP's database programming, due to the size of the browser limit, in order to browse the data recorded a lot of time, to achieve more intuitive results, we have these data records into several pages, through the data navigation buttons (or other hyperlinks), paging browsing. In fact, this kind of data records paging browsing can also be achieved in asp.net. And in the process of implementation than in the process of ASP to appear more organized and more clear, and easier.

There are two basic types of paging browsing data logging through browsers. Other types of paging browsing are either changes to these two types or a combination of these two types. The following two images are shown in the specific manner:

Figure 01: The first paging browsing data record style

Figure 02: The second paging browsing data record style

Here's a look at the specific implementation process for the two paging browsing data records in asp.net:

First of all, to introduce the database we use, in this article for convenience, we use the local database Access 2000, the database name is "Data.mdb", which contains a datasheet "Tblitem". The data table is structured as follows:

字段名称
字段类型
ItemID
自动编号
ItemName
文本类型

If you're using a different database, just make a simple change to the program described below. This is described below.

A The software environment for the design and operation of this article:

(1) Microsoft company Windows 2000 Server Edition

(2). Net FrameWork SDK Beta 2

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.