Suppose I get 1000 rows from the database that need to be displayed in the view.

However, displaying 1000 lines on 1 page is not a very logical decision, as it is inconvenient.

How can they be displayed in a more convenient way?

For example, break them into 10 pages by 100 lines?

Maybe there is a more beautiful option?

Any example would not hurt either.

    1 answer 1

    I hope this links will be helpful to you. There are some good examples:

    Pagination-example-in-ASPNet-MVC 1

    • one
      It would be necessary that the response was at least a little code. Otherwise, over time, the link may become inoperative and thus your answer will turn into null . If you are not inclined to give a detailed answer, then it is better to limit yourself to a comment on the question with this link. - Bulson