AspNetPager控件没有显示总页数和当前页的属性吗?
AspNetPager控件没有显示总页数和当前页的属性吗?是不是要另外计算?
C# code
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" UrlPaging="true" FirstPageText="首页"
LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" CustomInfoHTML="第%CurrentPageIndex%页,共%PageCount%页,第页显示%PageSize%条" PageIndexBoxStyle="width:19px" ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextBeforePageIndexBox="第" TextAfterPageIndexBox="页" HorizontalAlign="left" PageSize="12" OnPageChanged="AspNetPager1_PageChanged" EnableTheming="true">
</webdiyer:AspNetPager>
怎么加上显示 共XX页 和 当前X/X页
------解决方案--------------------
------解决方案--------------------
楼主你现在的CustomInfoHTML设置就对着,但自定义信息区默认是不显示的,所以要显示,还得加上一句:
ShowCustomInfoSection="Left"(左边)或 "Right" (右边),请参考帮助中的说明:http://www.webdiyer.com/AspNetPagerDocs/Wuqi.Webdiyer.AspNetPager.ShowCustomInfoSection.html