Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to add paging in ASP.NET Core Razor Pages

$
0
0

Now I study the  "Getting started with Razor Pages in ASP.NET Core".   

 I have  add PaginatedList.cs  in the project  like in " EF Core with ASP.NET Core MVC tutorial".

@model PaginatedList<ContosoUniversity.Models.Student>

@{
    ViewData["Title"] = "Index";
}
<h2>Index</h2>

this  is do work;

Now in in ASP.NET Core   Razor Pages, I don know how to use this PaginatedList<> function;

@page
@model RazorPagesMovie.Pages.Movies.IndexModel
???   PaginatedList<>

????@model PaginatedList<RazorPagesMovie.Models.Movies> 
@{
    ViewData["Title"] = "Index";
}

<h2>Index</h2>


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>