试图页面分页首选

<div style="width: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="添加" οnclick="location.href = '/Index/AddInfo'"/>
<input id="Button2" type="button" value="批量删除" οnclick="DeleteIds()"/>
}
<table class="table-bordered table-striped table-hover" style="width:1000px" align="center" height="100" >
<tr>
<td><input id="QuanXuan" type="checkbox" name="QuanXuan" οnclick="QuanXuan()"/>
<input id="FanXuan" type="checkbox" name="FanXuan" οnclick="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>

转载于:https://www.cnblogs.com/MenBe/p/9521700.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值