AspNetPager分页示例
该示例演示如何设置AspNetPager 分页控个把当前页索引按钮在所有数字页索引按钮中的位置:
注:上一版本中通过设置CenterCurrentPageButton="true"使当前页按钮居中的方法仍然起作用,但CenterCurrentPageButton属性已被标记为废止,以后的版本中将不再可用。


默认值(当前页索引按钮位置固定不变)

首页上页...11121314151617181920...下页尾页  Go To Page:


当前页索引按钮总是在所有数字页索引按钮的开头
声明方式设置:<webdiyer:AspNetPager ID="AspNetPager2" runat="server" CurrentPageButtonPosition="Beginning" ...
编程方式设置:AspNetPager2.CurrentPageButtonPosition=Wuqi.Webdiyer.PagingButtonPosition.Beginning

12345678910...下页尾页  Go To Page:


当前页索引按钮总是在所有数字页索引按钮的中间
声明方式设置:<webdiyer:AspNetPager ID="AspNetPager3" runat="server" CurrentPageButtonPosition="Center"
编程方式设置:AspNetPager3.CurrentPageButtonPosition=Wuqi.Webdiyer.PagingButtonPosition.Center

首页上页...111213141516171819...下页尾页  Go To Page:


当前页索引按钮总是在所有数字页索引按钮的结尾
声明方式设置:<webdiyer:AspNetPager ID="AspNetPager4" runat="server" CurrentPageButtonPosition="End"
编程方式设置:AspNetPager4.CurrentPageButtonPosition=Wuqi.Webdiyer.PagingButtonPosition.End

首页上页...10111213141516171819...下页尾页  Go To Page:

©2003-2007 陕西省吴起县 Webdiyer 版权所有,保留所有权利