MvcPager分页控件的使用2

MvcPager分页控件前台展现形式二


 <!--翻页-->
        <div class="pagenum"> 
            @if (Model.TotalPageCount > 0)
            {
                <div id="flickrpager" class="pagination">
                    <span style="display:none ;"> 共 @Model.TotalPageCount 页 @Model.TotalItemCount 条记录,当前为第 @Model.CurrentPageIndex 页</span>
                    @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "pageIndex", ShowPageIndexBox = true, PageIndexBoxType = PageIndexBoxType.DropDownList, ShowGoButton = false }, new MvcAjaxOptions { UpdateTargetId = "dvPros" })
                </div>
            }
            @section Scripts{ @{Html.RegisterMvcPagerScriptResource();} }
        </div>

你可能感兴趣的:(mvc,分页)