asp中的分页
来源:互联网 发布:异地同步看电影软件 编辑:程序博客网 时间:2024/06/02 03:12
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" UrlPaging="false"
ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextBeforePageIndexBox="转到: "
FirstPageText="首页" LastPageText="末页" PrevPageText="上一页" NextPageText="下一页" HorizontalAlign="left"
EnableTheming="true" OnPageChanged="AspNetPager1_PageChanged">
ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextBeforePageIndexBox="转到: "
FirstPageText="首页" LastPageText="末页" PrevPageText="上一页" NextPageText="下一页" HorizontalAlign="left"
EnableTheming="true" OnPageChanged="AspNetPager1_PageChanged">
</webdiyer:AspNetPager>
后端代码
DataTable dt = BulletionAction.ReturnTable(this.UserCode, strwhere);
AspNetPager1.RecordCount = dt.Rows.Count;
if(dt.Rows.Count>0){
PagedDataSource pds = new PagedDataSource();
AspNetPager1.RecordCount = dt.Rows.Count;
pds.AllowPaging = true;
pds.PageSize = AspNetPager1.PageSize;
pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
pds.DataSource = dt.DefaultView;
this.GridView1.DataSource = pds;
this.GridView1.DataBind();
}
}
阅读全文
0 0
- asp中的分页技术
- ASP.NET中的分页
- ASP.NET中的分页
- asp中的分页程序
- asp中的分页
- ASP.NET中的DataGrid分页
- ASP.NET中的真假分页
- ASP.net中的Datagrid自定义分页功能
- ASP.net中的几种分页方法
- asp.net中的datalist分页方法
- ASP.net中的Datagrid自定义分页功能
- ASP.net中的几种分页方法
- ASP.net中的几种分页方法
- ASP.net中的几种分页方法
- asp.net分页显示数据库中的数据
- ASP.NET中的几种分页
- asp.net中的DataGridView增删改查加分页
- asp.net 中的gridview 之gridview 分页
- Mysql在高并发情况下,防止库存超卖而小于0的解决方案
- 手把手教你用Python画地图
- Linux 命令
- 从零开始使用Visual Studio 2017编译器 (一)
- strcmp与strncmp的区别
- asp中的分页
- jenkins部署完整版本
- redis集群环境搭建以及java中jedis客户端集群代码实现
- java中fail-fast 和 fail-safe的区别
- 在win10上配置bash shell
- 虚拟机Apache共享Windows文件夹读取错误
- ZOJ2112-Dynamic Rankings
- 【Skynet】C头文件不要定义函数?
- 正则表达式