Archive

Posts Tagged ‘Paging’

Listing Records and ADO Recordset Paging in ASP

October 7th, 2009 Mehmatrix No comments

Using databases gives us lots of advantages. Listing and paging our records dynamically is one of them. In our applications, we may need to show so many records to user and in order to make it clear we have to list them well-arranged. However, listing too many database records in one time can be a handicap for us, because if the number of records reaches the huge values, then loading pages takes long time. So, we should separate records to pages. It means that in respect of number of database records, pages will be created automatically and a specified number of records will be shown on each page.

We have to know some paging and listing statements to do this issue. There are some paging and listing statements which will be used in this article.

Paging Statements
- PageSize is used to define limit number of records which will be shown in each page.
- AbsolutePage is used to determine the page selected.
- PageCount is used to get number of pages created automatically.

Listing Statements
- Move(X) is used to get Xth record from current record.
- MoveNext is used to get the next record.
- MovePrevious is used to get the previous record.
- MoveLast is used to get the last record.
- MoveFirst is used to get the first record.

There is also RecordCount statement for getting number total records Click to Read Complete Article »

Bookmark and Share
Categories: ASP Tags: , , , ,
eXTReMe Tracker