asp.net mvc c# - ViewData类的属性EntryList
我不知道访问 ViewData 中的 EntryList 时出现问题。
<%= Html.RenderPartial("LogOnControl", new NISE.Web.TestForum.Views.Shared.PaginationViewData()
{
PageIndex = ViewData.*EntryList*.PageIndex,
TotalPages = ViewData.*EntryList*.TotalPages,
PageActionLink = Url.Action("List","Entry", new { category = ViewData.Category, page = "{page}"}),
TotalCount = ViewData.*EntryList*.TotalCount,
PageSize = ViewData.*EntryList*.PageSize
}, null)%>
我做了像这里的一切
但它不起作用...:(
I dont know where is my problem to access EntryList in ViewData.
<%= Html.RenderPartial("LogOnControl", new NISE.Web.TestForum.Views.Shared.PaginationViewData()
{
PageIndex = ViewData.*EntryList*.PageIndex,
TotalPages = ViewData.*EntryList*.TotalPages,
PageActionLink = Url.Action("List","Entry", new { category = ViewData.Category, page = "{page}"}),
TotalCount = ViewData.*EntryList*.TotalCount,
PageSize = ViewData.*EntryList*.PageSize
}, null)%>
I did everything like here
but it doesnt works... :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您链接到的博客条目上发布的评论之一说:
答案是:
One of the comments posted on the blog entry you linked to says:
The answer was: