aspnetpager 分頁控件

 

 

 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>無標題頁</title>
    <style type="text/css" >
    .pages { color: #999; }
.pages a, .pages .cpb { text-decoration:none;float: left; padding: 0 5px; border: 1px solid #ddd;background: #ffff;margin:0 2px; font-size:11px; color:#000;}
.pages a:hover { background-color: #E61636; color:#fff;border:1px solid #E61636; text-decoration:none;}
.pages .cpb { font-weight: bold; color: #fff; background: #E61636; border:1px solid #E61636;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    
     <webdiyer:aspnetpager NumericButtonCount="6"//獲取或設置在 AspNetPager 控件的頁導航元素中同時顯示的數值按鈕的數目。 
      CssClass="pages" 
      PageSize="20" 
      CurrentPageButtonClass="cpb" 
      id="AspNetPager1" 
      runat="server" 
      NextPageText="下一頁" 
      PrevPageText="上一頁" 
      UrlPaging="True" 
      ShowInputBox="Always"//可輸入框
      ></webdiyer:aspnetpager>
    </div>
    </form>
</body>
</html>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章