这是我的观点片段,它给了我错误
@model MembershipUserCollection
@{
ViewBag.Title = "Index";
}
@{var usersGrid = new WebGrid(source: Model, rowsPerPage: 40);}
显然 WebGrid 构造函数不接受 MembershipUserCollection 作为参数。我怎样才能解决这个问题?
请帮忙。我需要将分页添加到用户列表中。
这是我的观点片段,它给了我错误
@model MembershipUserCollection
@{
ViewBag.Title = "Index";
}
@{var usersGrid = new WebGrid(source: Model, rowsPerPage: 40);}
显然 WebGrid 构造函数不接受 MembershipUserCollection 作为参数。我怎样才能解决这个问题?
请帮忙。我需要将分页添加到用户列表中。