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>

 

你可能感兴趣的:(html,C++,c,XHTML,css)