分页显示显示“第几页、共几页、显示几条”
2013-06-06 16:52
148 查看
前台分页处:ShowCustomInfoSection="left" 显示左边的(第几页、共几页、显示几条)
后台代码:写在BindGrid()中
AspNetPager1.CustomInfoText = " 共有<font color=\"blue\"><b>" + AspNetPager1.RecordCount.ToString() + "</b></font>条记录";
AspNetPager1.CustomInfoText += " 总页数:<font color=\"blue\"><b>" + AspNetPager1.PageCount.ToString() + "</b></font>页";
AspNetPager1.CustomInfoText += " 当前页:第<font color=\"red\"><b>" + AspNetPager1.CurrentPageIndex.ToString() + "</b></font>页";
后台代码:写在BindGrid()中
AspNetPager1.CustomInfoText = " 共有<font color=\"blue\"><b>" + AspNetPager1.RecordCount.ToString() + "</b></font>条记录";
AspNetPager1.CustomInfoText += " 总页数:<font color=\"blue\"><b>" + AspNetPager1.PageCount.ToString() + "</b></font>页";
AspNetPager1.CustomInfoText += " 当前页:第<font color=\"red\"><b>" + AspNetPager1.CurrentPageIndex.ToString() + "</b></font>页";
相关文章推荐
- 润乾报表分页标签:显示第几页和共几页
- dedecms V5.7笔记:文章页和内容页的分页代码判断 只显示前后几页的办法 与getjson在ie下无法刷新的简便方法
- word2010首行缩进、设置页码为第几页共几页、图片完全不显示等问题
- 加查询功能的分页显示(包括当前的页码数和总共的页码数,和直接跳到第几页)
- 对特定表进行分页显示的存储过程(要求有两个参数一个是 每页显示的记录的条数(@pagesize),第二个是显示第几页(@pageIndex))
- 实例:封面,目录,内容,分别显示第几页,共几页。
- 长文章分页显示
- 传智播客-- 教育办公系统基于AJAX的分页,删除,修改,显示
- 纯js实现分页 原理:所有数据已加载好 js通过遍历部分显示 实现分页效果
- 关于分页显示中的换行显示原理代码
- BIRT 实现分页显示
- 添加分页控件aspnetpager显示未知的服务标记
- C#一个显示分页页码类
- asp分页显示时单引号引发的一个错误!
- jQuery+Ajax+PHP+Mysql实现分页显示数据
- cisco 和 华为的设备如何设置命令不分页显示
- 如何在Struts 数据库应用程序中实现分页显示(2)
- PHP分页显示制作详细讲解
- AngularJS分页显示的简单案例
- mybatis-分页显示数据