Is there an ASP.NET pagination control (not MVC)?

I have a search results page that basically consists of a relay with the content in it. I need a way to paginate results. Getting paginated results is not a problem, what I need is a web control that displays a list of available paged data, preferably by providing the number of results and page size

+4
source share
1 answer

Repeaters do not do this by default.

However, gridviews do.

Personally, I hate GridViews, so I wrote a Paging / Sorting Repeater control.

The main steps:

  • Repeater Management Subclass
  • Add to it a private PagedDataSource
  • Add Public PageSize Property
  • Override Control.DataBind
    • Store the Control.DataSource file in the PagedDataSource.
    • Associate a Control.DataSource with a PagedDataSource
  • Override Control.Render
    • Call Base.Render ()
    • Submit your paging links.

For walkthroughs you can try this link:

http://aspnet.4guysfromrolla.com/articles/081804-1.aspx

+7
source

Source: https://habr.com/ru/post/1276619/


All Articles