分页利器 AspNetPager常用属性

 

今天是第一次用,感觉挺好的,这里记录下,防止以后忘记,嘿嘿;

   <webdiyer:aspnetpager id="AspNetPager1" runat="server" 
       alwaysshow="True"
       PageSize="5" 
       custominfosectionwidth="20%" 
       custominfotextalign="Right" 
       firstpagetext="第一页"
       horizontalalign="Left" 
       lastpagetext="末一页" 
       navigationbuttontype="Image"  
       nextpagetext="后一页"
       pageindexboxtype="TextBox"
       pagingbuttonspacing="8px"
       prevpagetext="前一页" 
       showcustominfosection="Right" 
       showpageindexbox="Always" 
       textafterpageindexbox="页" 
       UrlPaging="true" 
       textbeforepageindexbox="跳到第"
       width="97%" 
       onpagechanged="AspNetPager1_PageChanged">
</webdiyer:aspnetpager>
 
alwaysshow:总是显示分页控件;
PageSize:指定每页显示的记录数;
custominfosectionwidth:用户自定义信息区的宽度;
custominfotextalign:用户自定义信息区的对齐方式;
firstpagetext:第一页按钮上显示的文本;
horizontalalign:内容水平对齐方式;
lastpagetext:最后页按钮上显示的文本;
navigationbuttontype:第一页、下一页、最后一页按钮的类型;
nextpagetext:下一页按钮上显示的文本;
pageindexboxtype:指示页索引框的显示类型:有TextBOX和dropdownlist两种;
pagingbuttonspacing:导航页按钮的间距;
prevpagetext:上一页按钮的显示的文本;
showcustominfosection:显示当前页和总页信息,默认为不显示,值为LEFT时将显示在页索引前,为right时显示在页索引后;
showpageindexbox:指定页索引文本框或下拉框的显示方式;
textafterpageindexbox:指定页索引文本框或下拉框后的文本;
UrlPaging:是够使用URL传递分页的方式来分页;
textbeforepageindexbox:指定页索引文本框或下拉框前面显示的文本;
width:该控件的宽度;
CustomInfoHTML:指定要显示在用户自定义信息区的用户自定义HTML信息文本
 
原文地址:https://www.cnblogs.com/kloseking/p/2125795.html