<webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" FirstPageText="首页"
LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
Width="95%" PrevPageText="上一页" showinputbox="Never" CustomInfoTextAlign="left"
CustomInfoSectionWidth="80%" ShowCustomInfoSection="left" ShowPageIndexBox="always"
TextBeforePageIndexBox="转到" LayoutType="Table" PageIndexBoxType="DropDownList"
HorizontalAlign="Right" CustomInfoHTML="第<font color='red'><b>%currentPageIndex%</b></font>页,共%PageCount%页,每页显示%PageSize%条记录" PageSize="10">
</webdiyer:AspNetPager>
CSS
/************** 分页控件样式 开始 *************/
.pageinfo
{
width: 100%;
margin-top: 0px;
text-align: center;
vertical-align:middle;
padding-bottom:10px;
}
.pageinfo table
{
border:solid 0px red;
background-color:#fff;
}
.pageinfo table tr td
{
border:solid 0px yellow;
background-color:#fff;
}
/************** 分页控件样式 结束 *************/