Using pagedatasource Indexing Problem Solving method _ practical skills

Source: Internet
Author: User
An error condition occurred:

When the current page is on any page of the first page of the data, the query is reset and the total number of pages for the new condition is less than the page numbers that were just queried, and the "index 20 is not a negative number, or it is greater than the line count" is a similar error!

Reason Analysis:

When the page number index of the queried data is greater than 1 o'clock, when the criteria are requery, the current data is less than the last page number, so the new query index is less than the last query index, and the index is larger than the number of rows.


Initialize the page number index to 1 before each requery,
Related Article

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.

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.