zoukankan      html  css  js  c++  java
  • 试图页面分页首选

    <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>

  • 相关阅读:
    [ios]总结iOS开发当中一些特别注意的问题 【转】
    [ios]Core Data
    [ios]图片转pdf 【转】
    rsync服务的安装与配置
    c# winform及DotnetBar笔记
    我恨博客园
    C#日期格式化(ASP.NET)
    c# winform DatagridView使用总结
    .net2.0数据绑定语法
    div代替window.alert,让这个div显示信息后,在指定之间时间内消失
  • 原文地址:https://www.cnblogs.com/MenBe/p/9521700.html
Copyright © 2011-2022 走看看