• 试图页面分页首选


    <div style="1050px;padding:20px">
    @using (Html.BeginForm("Select", "Index",FormMethod.Post))
    {
    <span>小区</span>@Html.DropDownList("xiaoqu", ViewBag.DataXiaoQu as List<SelectListItem>,"==请选择==")
    <span>栋号</span>@Html.DropDownList("donghao", ViewBag.DataDongHao as List<SelectListItem>,"==请选择==")
    <span>户型</span>@Html.DropDownList("huxing", ViewBag.DataHuXing as List<SelectListItem>,"==请选择==")
    <span>状态</span>@Html.DropDownList("zhuangtai", ViewBag.DataZhuangTai as List<SelectListItem>,"==请选择==")
    <span>坐落</span><input id="Text1" name="name" /><input id="Submit1" type="submit" value="查询" />

    <input id="Button1" type="button" value="添加" onclick="location.href = '/Index/AddInfo'"/>
    <input id="Button2" type="button" value="批量删除" onclick="DeleteIds()"/>
    }
    <table class="table-bordered table-striped table-hover" style="1000px" align="center" height="100" >
    <tr>
    <td><input id="QuanXuan" type="checkbox" name="QuanXuan" onclick="QuanXuan()"/>
    <input id="FanXuan" type="checkbox" name="FanXuan" onclick="FanXuan()"/></td>

    <td>编号</td>
    <td>小区</td>
    <td>栋号</td>
    <td>位置</td>
    <td>坐落</td>
    <td>房源面积</td>
    <td>计租面积</td>
    <td>户型</td>
    <td>建筑结构</td>
    <td>租赁性质</td>
    <td>状态</td>
    <td>操作</td>
    </tr>
    @foreach (var item in Model)
    {

    <tr>
    <td><input id="cks" type="checkbox" name="cks" value="@item.ID"/></td>
    <td>@item.ID</td>
    <td>@item.XName</td>
    <td>@item.DName</td>
    <td>@item.WeiZhi</td>
    <td>@item.ZuoLuo</td>
    <td>@item.FangYuanMianJi</td>
    <td>@item.JiZuMianJi </td>
    <td>@item.HName</td>
    <td>@item.JName </td>
    <td>@item.XZName</td>
    <td>@item.ZName </td>
    <td>
    @Html.ActionLink("删除", "DeleteId", new { @ID=item.ID })
    </td>
    </tr>
    }
    </table>
    <p>
    共 <span>@ViewBag.count</span> 条数据 共计 <span>@ViewBag.page</span> 页 当前第 <span>@ViewBag.Index</span> 页
    </p>
    <p style="padding-left:170px">
    @Html.ActionLink("首页", "First")
    @Html.ActionLink("上一页", "ShangYiYe")
    @Html.ActionLink("下一页", "Next")
    @Html.ActionLink("尾页", "WeiYe")
    </p>
    </div>
    </body>
    </html>

  • 相关阅读:
    修补瘪胎
    胎压监测系统(DWS)
    路径参数:Path Parameters
    C++线程池
    C++std::list
    C++std::is_same
    什么时候需要加锁
    C++14相比C++11多了的功能
    C++11关键字decltype
    C++std::result_of
  • 原文地址:https://www.cnblogs.com/MenBe/p/9521700.html
Copyright © 2020-2023  润新知