Posts

Showing posts from November 27, 2018

How to implement pagination in asp.net core razor pages

Image
up vote 1 down vote favorite 1 I'm learning asp.net core razor pages with ef. I want to implement pagination with my table, I have check this tutorial https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/sort-filter-page?view=aspnetcore-2.1 but it only support pre and next, I have researched for a long time, all of the solution are related to asp.net core mvc, but I'm using razor pages, there's no controller in my project, any ideas to implement? This is the effect what I want to implement <form method="get" asp-page="./Index"> <nav aria-label="Page navigation"> <ul class="pagination"> <li> <a href="#" aria-label="Previous">