前台分页处: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>页"; |