您的位置:首页 > 其它

分页显示显示“第几页、共几页、显示几条”

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>页";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: