C# - 将数组传递给Html.PagedListPager

时间:2015-06-02 10:31:08

标签: asp.net-mvc

我在我的应用程序中使用Html.PagedListPager扩展名进行分页。我想将整数数组传递给此方法。以下是我的代码

@Html.PagedListPager(
   Model.NewListProjectModel, page => Url.Action(
       "PartialProjectListing",
       new { page, Model.SearchModel.Sectors }
    ), PagedList.Mvc.PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(
        new AjaxOptions() {
            HttpMethod = "GET",
            UpdateTargetId = "PartialListingProjects",
            OnSuccess = "$.moveToTop('#PartialListingProjects>div')" 
        }
    )
)

0 个答案:

没有答案