我正在研究一个试图显示这样的结果的现有代码
@Html.Partial("_ClaimsResultsTable", Model.Items)
@{
var options = PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(PagedListRenderOptions.DefaultPlusFirstAndLast, "#list-" + Model.CustId);
options.DisplayLinkToFirstPage = false;
options.DisplayLinkToPreviousPage = false;
options.LinkToLastPageFormat = ">>";
options.LinkToNextPageFormat = ">";
}
我收到此异常,但不知道这意味着什么...
[MethodAccessException:尝试通过方法'PagedList.Mvc.PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(PagedList.Mvc.PagedListRenderOptions,System.String)'访问方法'PagedList.Mvc.PagedListRenderOptions + <> c__DisplayClass1.b__0(System.Web。 TagBuilder,System.Web.Mvc.TagBuilder)'失败。] PagedList.Mvc.PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(PagedListRenderOptions options,字符串ID)+68