日期:2014-05-17  浏览次数:20438 次

aspnetpager的问题,在线等。


  <asp:AspNetPager ID="InboxPager"  runat="server" AlwaysShow="True"
                    CustomInfoHTML="%CurrentPageIndex% / %PageCount%" 
                     NextPageText="下一页" 
                    NumericButtonCount="5" PageSize="20" PrevPageText="上一页" ShowCustomInfoSection="Left"  ShowFirstLast="false">
                </asp:AspNetPager>

这个是我的代码,怎么叫1/1这个放到“上一页和下一页中间”将之前的1移除
------解决方案--------------------
给他的源码吧
------解决方案--------------------
你看它的源码啊,我这又没有,  改CustomInfoHTML属性显示的位置
------解决方案--------------------
修改源码。否则提供的dll没这个功能 http://www.webdiyer.com/Home/Index?aspxerrorpath=/
------解决方案--------------------
抱歉,不可以,没见过这种要求的
------解决方案--------------------
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="<span style='position:relative;left:500px;display:block'>%CurrentPageIndex% / %PageCount%</span>"
NextPageText="下一页" NumericButtonCount="5" PageSize="20" PrevPageText="上一页" ShowCustomInfoSection="left"
ShowFirstLast="false" OnPageChanging="AspNetPager1_PageChanging" ShowMoreButtons="false"
PrevNextButtonsStyle="margin-left:50px" ShowPageIndex="False">
</webdiyer:AspNetPager>
调好了,可能位置有少许偏差,只要修改红色像素值就行了。

------解决方案--------------------
引用:
引用:<webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="<span style='position:relative;left:500px;display:block'>%CurrentPageIndex% / ……

不懂。。。。。。。
引用#7

<webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="<span style='position:relative;left:500px;display:block'>在这里加空格%CurrentPageIndex% / %PageCount%在这里加空格</span>"
 NextPageText="下一页" NumericButtonCount="5" PageSize="20" PrevPageText="上一页" ShowCustomInfoSection="left"
 ShowFirstLast="false" OnPageChanging="AspNetPager1_PageChanging" ShowMoreButtons="false"
 PrevNextButtonsStyle="margin-left:50px" ShowPageIndex="False">
 </webdiyer:AspNetPager>

------解决方案--------------------
引用:
引用:<webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="<span style='position:relative;left:500px;display:block'>%CurrentPageIndex% / ……

PrevNextButtonsStyle="margin-left:50px" 
设置前一页下一页按钮的样式为“做外边距:50px"。
------解决方案--------------------
分页很复杂吗?自己写一个呗