ASP.NET paging solution available at GitHub

Paging of data in ASP.NET and ASP.NET Core applications is timeless topic. It is invented over and over again and asked all the time in forums all over the world. Years ago I worked out kind of universal solution with reusable UI artifacts and I’m using these pieces this far. As ASP.NET Core is gaining more and more popularity I decided to start my sample solution with .NET Core and add full ,NET Framework and ASP.NET MVC 5 support later if asked.

Paging sample solution is available at GitHub repository gpeipman/DotNetPaging. Please feel free to check it out and use the code if it works for you. Please keep feature requests and issues at GitHub issue tracker for paging  project.

What’s included in paging solution?

My solution currenlty contains the following:

  • General pager classes for data and presentation layer
  • MS SQL Server scripts for sample database
  • ASP.NET Core 2 application with Entity Framework Core 2
  • Pager view component
  • Paging with models mapped using AutoMapper

Over time I plan to add new popular data sources to solution so paging for most important sources will be covered.

More about paging

Before building this solution I wrote some posts about paging I suggest you to read:

Liked this post? Empower your friends by sharing it!

Gunnar Peipman

Gunnar Peipman is ASP.NET, Azure and SharePoint fan, Estonian Microsoft user group leader, blogger, conference speaker, teacher, and tech maniac. Since 2008 he is Microsoft MVP specialized on ASP.NET.

    5 thoughts on “ASP.NET paging solution available at GitHub

    • Pingback:The Morning Brew - Chris Alcock » The Morning Brew #2515

    • January 29, 2018 at 9:45 pm
      Permalink

      ASP.NET MVC and Entity Framework sample application is published to GutHub now.

    • January 30, 2018 at 10:44 am
      Permalink

      Please make a live demo – maybe at a free hosting, like appharbor.com/

    • January 30, 2018 at 10:45 am
      Permalink

      Can you tell me more about live demo – you just want to see this demo running or do you need more introductory content about it?

    • February 14, 2018 at 1:55 am
      Permalink

      Hi Gunnar,

      Great sample! I was looking for a pagination solution for a very simple grid and voila! here it is!
      However, there is an issue with the pagination when you have more than 5 pages. I will try to fix it and will let you know my solution.

      Regards!
      Antonio.

    Leave a Reply

    Your email address will not be published. Required fields are marked *