Guest User

Untitled

a guest
Jun 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView1" PageSize="20">
  2. <Fields>
  3. <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="False" ShowNextPageButton="False"
  4. ShowPreviousPageButton="False" />
  5. <asp:NumericPagerField NumericButtonCssClass="datapager" />
  6. <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="False" ShowNextPageButton="False"
  7. ShowPreviousPageButton="False" />
  8. </Fields>
  9. </asp:DataPager>
  10.  
  11. .datapager
  12. {
  13. color:black;
  14. border: 1px solid black;
  15. }
  16.  
  17. <div class="pagination">
  18. <span class="page_cur">1</span>
  19. <a href="news.php?page=2" class="page_num">2</a>
  20. <a href="news.php?page=3" class="page_num">3</a>
  21. <a href="news.php?page=4" class="page_num">4</a>
  22. <a href="news.php?page=5" class="page_num">5</a>
  23. ...
  24. </div>
  25.  
  26. <style>
  27. div.pagination > span.page_cur, div.pagination > a.page_num {
  28. display: block;
  29. float: left;
  30. padding: 4px;
  31. }
  32. div.pagination > span.page_cur {
  33. background-color: #ddd;
  34. border: 1px solid #ddd;
  35. }
  36. div.pagination > a.page_num {
  37. background-color: #fff;
  38. border: 1px solid #e0e0e0;
  39. }
  40. </style>
Add Comment
Please, Sign In to add comment