@Html.Pagedlistpager No Bootstrap

Asked

Viewed 29 times

0

I am building a small project in Asp.net MVC and I need to make use of the X.Pagedlist library, I was able to make the pagination all right, but it is not applying the Bootstrap, which should be standard.

Calling the pagination in the View:

<div class="justify-content-center">
   @Html.PagedListPager(Model, pages => Url.Action("Index", new { pages}))                                
</div>

Controller:

// GET: Produto
public ActionResult Index(int? pages)
{
    int pagNumber = (pages ?? 1);
    var produtos = TodosProdutos.ToPagedList(pages, 9);
    return View(produtos);
}

References from the View:

@using X.PagedList.Mvc;
@model X.PagedList.PagedList<Zeus.Models.Product>

Folder Content:
inserir a descrição da imagem aqui

Pagination is as follows when executing:

inserir a descrição da imagem aqui

Does anyone know what the problem might be?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.