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