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

Question :

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

Answer :

I’ve got a search results page that basically consists of a repeater with content in it. What I need is a way to paginate the results. Getting paginated results isn’t the problem, what I’m after is a web control that will display a list of the available paged data, preferably by providing the number of results and a page size

,

Repeaters don’t do this by default.

However, GridViews do.

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

Read More  MAPI and managed code experiences?

Basic Steps:

  • Subclass the Repeater Control
  • Add a private PagedDataSource to it
  • Add a public PageSize property
  • Override Control.DataBind
    • Store the Control.DataSource in the PagedDataSource.
    • Bind the Control.DataSource to PagedDataSource
  • Override Control.Render
    • Call Base.Render()
    • Render your paging links.

For a walkthrough, you could try this link:

That’s the answer Is there an ASP.NET pagination control (Not MVC)?, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Read More  How do I enable Edit and Continue on a 64-bit application and VB2008 Express?

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you