Pager

It will generate a pager with buttons that will redirect to the specified url by adding the page parameter in the query string

Papaya Fruits

12345 ... 25

show code
PagerDemo/Index.cshtml
<table style="width: 300px;">
@{ foreach (var o in Model)
{
<tr>
<td>
@o.Name
</td>
<td>
@o.Category.Name
</td>
</tr>
}}
</table>
<br />

@(Html.Awe().Pager()
.Url(Url.Action("Index")) // url to go to
.Count((int)ViewData["count"]) // page count
.Page((int)ViewData["page"])) @*current page*@



Comments