zoukankan      html  css  js  c++  java
  • AspNetPager样式以及属性帮助文档

    帮助文档地址:http://www.webdiyer.com/AspNetPagerDocs/index.html

    应用样式:http://www.webdiyer.com/AspNetPagerDemo/ApplyStyles/default.aspx

    样式,原文地址:http://www.cnblogs.com/zengxiangzhan/archive/2010/03/03/1677460.html

    曾祥展

    分页是Web应用程序中最常用到的功能之一,AspNetPager  简单实用,应用到项目后台中,棒极了!

    自定义样式:

    <style type="text/css">  /*拍拍网风格*/  .paginator { font: 11px Arial, Helvetica, sans-serif;padding:10px 20px 10px 0; margin: 0px;}  .paginator a {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;margin-right:2px}  .paginator a:visited {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;}  .paginator .cpb {padding: 1px 6px;font-weight: bold; font-size: 13px;border:none}  .paginator a:hover {color: #fff; background: #ffa501;border-color:#ffa501;text-decoration: none;}    /*淘宝风格*/  .paginator { font: 12px Arial, Helvetica, sans-serif;padding:10px 20px 10px 0; margin: 0px;}  .paginator a {border:solid 1px #ccc;color:#0063dc;cursor:pointer;text-decoration:none;}  .paginator a:visited {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;}  .paginator .cpb {border:1px solid #F50;font-weight:700;color:#F50;background-color:#ffeee5;}  .paginator a:hover {border:solid 1px #F50;color:#f60;text-decoration:none;}  .paginator a,.paginator a:visited,.paginator .cpb,.paginator a:hover    {float:left;height:16px;line-height:16px;min-width:10px;_width:10px;margin-right:5px;text-align:center;   white-space:nowrap;font-size:12px;font-family:Arial,SimSun;padding:0 3px;}   </style>
    前台:
    <table cellpadding="0" cellspacing="0" align="center" width="99%" class="border">  <tr>  <td align="left" colspan="2">  <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator"   CurrentPageButtonClass="cpb" runat="server" AlwaysShow="True"   FirstPageText="首页"  LastPageText="尾页" NextPageText="下一页"  PageSize="20" PrevPageText="上一页"  ShowCustomInfoSection="Left"   ShowInputBox="Never" onpagechanged="AspNetPager1_PageChanged"  CustomInfoTextAlign="Left" LayoutType="Table"  >  </webdiyer:AspNetPager>  </td>  </tr>  </table>

    后台:

    void bindData()     {
    .......绑定语句
    this.AspNetPager1.CustomInfoHTML = string.Format("当前第{0}/{1}页 共{2}条记录 每页{3}条", new object[] { this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageCount, this.AspNetPager1.RecordCount, this.AspNetPager1.PageSize }); } protected void AspNetPager1_PageChanged(object src, EventArgs e) { bindData(); }
  • 相关阅读:
    flex布局中transform出错
    RabbitMQ系列之Centos 7安装RabbitMQ 3.6.1
    解决windows下FileZilla server中文乱码问题
    IIS 7.5 + PHP-5.6.3 + mysql-5.6.21.1
    C# 速编神器LinqPad(新版6.5)
    一个MySql Sql 优化技巧分享
    IIS反向代理/Rewrite/https卸载配置
    zerotier 远程办公方案
    一次Mysql连接池卡死导致服务无响应问题分析(.Net Mysql.Data 6.9.9)
    ExpressCache
  • 原文地址:https://www.cnblogs.com/systemnet123/p/3615561.html
Copyright © 2011-2022 走看看