Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView1" PageSize="20">
- <Fields>
- <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="False" ShowNextPageButton="False"
- ShowPreviousPageButton="False" />
- <asp:NumericPagerField NumericButtonCssClass="datapager" />
- <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="False" ShowNextPageButton="False"
- ShowPreviousPageButton="False" />
- </Fields>
- </asp:DataPager>
- .datapager
- {
- color:black;
- border: 1px solid black;
- }
- <div class="pagination">
- <span class="page_cur">1</span>
- <a href="news.php?page=2" class="page_num">2</a>
- <a href="news.php?page=3" class="page_num">3</a>
- <a href="news.php?page=4" class="page_num">4</a>
- <a href="news.php?page=5" class="page_num">5</a>
- ...
- </div>
- <style>
- div.pagination > span.page_cur, div.pagination > a.page_num {
- display: block;
- float: left;
- padding: 4px;
- }
- div.pagination > span.page_cur {
- background-color: #ddd;
- border: 1px solid #ddd;
- }
- div.pagination > a.page_num {
- background-color: #fff;
- border: 1px solid #e0e0e0;
- }
- </style>
Add Comment
Please, Sign In to add comment