怎么在aspnetpager控件上显示总记录数
答案:2 悬赏:0 手机版
解决时间 2021-02-13 20:14
- 提问者网友:喧嚣尘世
- 2021-02-13 12:18
怎么在aspnetpager控件上显示总记录数
最佳答案
- 五星知识达人网友:纵马山川剑自提
- 2021-02-13 13:16
AspNetPager1.CustomInfoText = "记录总数:" + AspNetPager1.RecordCount.ToString() + "";
AspNetPager1.CustomInfoText += " 每页数:" + AspNetPager1.PageSize.ToString() + "";
AspNetPager1.CustomInfoText += " 总页数:" + AspNetPager1.PageCount.ToString() + "";
AspNetPager1.CustomInfoText += " 当前页:" + AspNetPager1.CurrentPageIndex.ToString() + "";
AspNetPager1.CustomInfoText += " 未显示页数:" + AspNetPager1.PagesRemain.ToString() + "";
AspNetPager1.CustomInfoText += " 未显示记录数:" + AspNetPager1.RecordsRemain.ToString() + "";
AspNetPager1.CustomInfoText += " 每页数:" + AspNetPager1.PageSize.ToString() + "";
AspNetPager1.CustomInfoText += " 总页数:" + AspNetPager1.PageCount.ToString() + "";
AspNetPager1.CustomInfoText += " 当前页:" + AspNetPager1.CurrentPageIndex.ToString() + "";
AspNetPager1.CustomInfoText += " 未显示页数:" + AspNetPager1.PagesRemain.ToString() + "";
AspNetPager1.CustomInfoText += " 未显示记录数:" + AspNetPager1.RecordsRemain.ToString() + "";
全部回答
- 1楼网友:duile
- 2021-02-13 14:09
aspnetpager1.custominfotext = "记录总数:<font color=\"blue\"><b>" + aspnetpager1.recordcount.tostring() + "</b></font>";
aspnetpager1.custominfotext += " 每页数:<font color=\"red\"><b>" + aspnetpager1.pagesize.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>";
aspnetpager1.custominfotext += " 未显示页数:<font color=\"red\"><b>" + aspnetpager1.pagesremain.tostring() + "</b></font>";
aspnetpager1.custominfotext += " 未显示记录数:<font color=\"red\"><b>" + aspnetpager1.recordsremain.tostring() + "</b></font>";
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯