乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      美觀的AspNetPager樣式以及使用方法

       悟靜 2012-05-13

      分頁是Web應(yīng)用程序中最常用到的功能之一,AspNetPager 簡單實用,應(yīng)用到項目后臺中,棒極了!

        自定義樣式:


        <style type="text/css"> 
        /*拍拍網(wǎng)風格*/
        .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>

        前臺:


         ?。?lt;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();
        } 

       

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多