C# MVC+NHibernate 分页

一、页面代码,分为三部分,一是查询条件部分,二是数据部分,二是页码条

<div id="ticketoutquery"> <table> <tr> <td style="width: 70px; text-align: right"> 订票单号: </td> <td style="text-align: left"> @Html.TextBoxFor(s => s.TicketNo) </td> <td style="width: 70px; text-align: right"> 出票时间: </td> <td> @Html.TextBoxFor(s => s.CreateDateStart, new { @class = "datepicker" }) </td> <td> @Html.TextBoxFor(s => s.CreateDateEnd, new { @class = "datepicker" }) </td> <td style="width: 70px; text-align: right"> <input type="button" id="tbQueryticketout" onclick="doQueryticketoutProcessing(1)" class="btn btn-primary" value="查询" /> </td> </tr> </table> </div> <div id="TaskList"> @Html.Raw(@ViewData["TaskLists"]) </div> <div class="page_nav" id="pageBar" style="margin:0,auto"> @Html.Raw(OilDigital.TicketSys2.Web.PageBarHelper.GetPagaBar((int)ViewData["PageIndex"], (int)ViewData["PageCount"], (int)ViewData["recoredCount"])) </div>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpjddd.html