Sourabh Dhiman

Sourabh Dhiman

  • 2k
  • 8
  • 133

How to set pagination.

Apr 8 2021 9:31 AM
Hello everyone this is my code .How to set here pagination 
<div class="row">
@foreach (var blogPost in Model.Items)
{
if (counter != 0 && counter % 3 == 0)
{
@:</div>
@:<div class="row">
}
<div class="col-md-4">
<div class="blog-teaser__image">
<a href="@blogPost.FullPath">
<img src="~/Images/businessman-concept-illustration_114360-1246.jpg" />
</a>
</div>
<div class="blog-teaser__text">
<h>@blogPost.Title</h>
</div>
<div class="blog-Description">
<p>@blogPost.ShortDescription</p>
@*<a href="@blogPost.FullPath" class="btn btn-default">Read post</a>*@
</div>
</div>counter++;
}
</div>
  
 

Answers (3)