English 中文(简体)
MvcContrib.UI。 Grid pagination problem
原标题:MvcContrib.UI.Grid pagination problem

我有一个物体,在一个称为可能价值的国际男女同性恋者协会中含有少数其他物体。 我成功地利用了电离层电网和电离层,但愿在物体的网页上添加电网——希望你知道我指的是什么。 因此,在我的控制者中,我也这样做了:

[AcceptVerbs(HttpVerbs.Get)]
public ViewResult Bla(string Id, int? page)

ViewData["PossibleValues"] = XYZ.PossibleValues.AsPagination(page ?? 1, 10);

可能 价值肯定包含数据,但并非“PossibleValues”]。 这是因为AsPagination依赖于zy装或某种东西吗? 感谢。

Chris

最佳回答

仅此图。 在控制器中使用:

ViewData["PossibleValues"] = XYZ.PossibleValues.ToList().AsQueryable().AsPagination(page ?? 1, 10);

接着认为:

<%= Html.Grid(ViewData["PossibleValues"] as IEnumerable<FFFF>).Columns(column =>
                           {
                            column.For(gf => gf.Value).Named("Value");
                        }).Empty("Sorry no data.")%>
                       <%= Html.Pager((IPagination)(ViewData["PossibleValues"] as IEnumerable<FFFF>))%>
问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签