大家好,我正在尝试更改名称“LinkToFirstPageFormat”或“LinkToPreviousPageFormat”并尝试使用“OnlyShowFivePagesAtATime”
这是我的 PagedListPager
@Html.PagedListPager(Model.video, page => Url.Action("video_play", new { page = page }), new PagedListRenderOptions { LinkToFirstPageFormat = "<< Next", LinkToPreviousPageFormat = "<", LinkToNextPageFormat = ">", LinkToLastPageFormat = "Last >>" })
好吧,此时一切都很好,但是当我在这里尝试使用渲染选项的“OnlyShowFivePagesAtATime”属性时,如下所示,我得到“没有重载方法 PagedlistPager 需要 4 个参数”
@Html.PagedListPager(Model.video, page => Url.Action("video_play", new { page = page }), new PagedListRenderOptions { LinkToFirstPageFormat = "<< Next", LinkToPreviousPageFormat = "<", LinkToNextPageFormat = ">", LinkToLastPageFormat = "Last >>" },PagedListRenderOptions.OnlyShowFivePagesAtATime)
那么如何使用 PagedListRenderOptions.OnlyShowFivePagesAtATime 更改链接名称?