jeudi 17 décembre 2015

Add bootstrap pagination dynamic

I'm looking for a way so that for each 10th post, it add a pagination, so that it's sperating my pages, dynamic. BUt not sur what i should do?.

This is my foreach code:

@foreach (var Thread in Model.Threads)
    {
        <div class="col-sm-12">
            @Html.ActionLink(Thread.Title, "Post", "Threads", new { @id = Thread.Id }, new { @class = "CategoryTitles" })
            <br /><br /><p style="margin-left: 25px;">By: @Thread.ApplicationUser.UserName</p><hr />
        </div>
    }

But don't know what to do from now

Aucun commentaire:

Enregistrer un commentaire