Talk about using X.PAGEDLIST.MVC paging (ASP. NET Core 2.1)

Source: Internet
Author: User
Tags dotnet

In a previous blog post that uses the X.PAGEDLIST.MVC component to page out an ASP. NET MVC application, you can refer to this essay: ASP. NET MVC uses pagedlist (new renamed X.PAGEDLIST.MVC) paging

But the old X.PAGEDLIST.MVC relies on the. NET Framework version, in order to be able to support the implementation of the ASP. NET core MVC cross-platform, there is no need to install the. NET Framework in ASP. Core. And all of the Controller action methods for ASP. NET Core mvc are async methods by default.

Writing a paging yourself is not a hassle, but the features are certainly not x.pagedlist.mvc.core powerful. This article briefly describes the X.pagedlist.mvc.core for ASP.

The first step: Installing the X.pagedlist.mvc.core package will automatically install the pagedlist. There are three different ways

1th, acquired through NuGet packages. In Visual Stuio 2017, the tools---nuget Package Manager---The NuGet packages in the Management solution---Browse tab--Enter x.pagedlist in the search text box below, or search directly X.pagedlist.mvc.core

2nd: Install in the NuGet Package management Console, enter the dotnet Add package X.pagedlist.mvc.core, automatically install the latest version of the packages and dependencies (currently 7.5.0), dependencies in the solution Manager, You can see the X.pagedlist.mvc.core (7.5.0) package.

3rd type: CLI command-line installation: Dotnet Add package X.pagedlist.mvc.core--version 7.5.0

Step Two: Give an example that actually uses it:

Installation

Talk about using X.PAGEDLIST.MVC paging (ASP. NET Core 2.1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.