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

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

    • 分享

      AspNetPager使用方法(精)

       悟靜 2012-05-13

      AspNetPager使用方法:(自己的一些總結(jié),肯定會有不足的地方,望不吝指教?。?/FONT>

      AspNetPager.dll下載的地址 

      1、首先引用AspNetPager.dll;

      2、在所使用的前臺頁面加入:<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>,

          指明DLL地址和命名空間;

      3、在頁面使用aspnetPager控件:(根據(jù)情況,自定義下面的屬性)

      <webdiyer:AspNetPager ID="AspNetPager1" class="quotes" runat="server" CustomInfoHTML="<span class="pageDesc">共有 %RecordCount% 頁 %CurrentPageIndex% / %PageCount% 頁</span>"
                              FirstPageText="首頁" LastPageText="尾頁" NextPageText="下一頁" PrevPageText="上一頁" Width="95%"
                              CustomInfoStyle="" PagingButtonsClass="PageButton" AlwaysShowFirstLastPageNumber="True"
                              CurrentPageButtonClass="PageButtonCurrent" PagingButtonSpacing="2px" PagingButtonsStyle=""
                              ShowPageIndexBox="Never" CurrentPageButtonStyle="" LayoutType="Table" OnPageChanging="AspNetPager1_PageChanging"
                              ShowCustomInfoSection="Left">
                          </webdiyer:AspNetPager>

       標紅的是點擊觸發(fā)事件:

             在.cs后臺頁面加上此方法:

              protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
              {
                  AspNetPager1.CurrentPageIndex = e.NewPageIndex;//指定顯示的頁數(shù)
              }

      4、同時,還要指定以下值: 

            AspNetPager1.PageSize=10;//每頁顯示多少條記錄

            AspNetPager1.RecordCount=100;//總頁數(shù)

      5、因為該控件與數(shù)據(jù)顯示和綁定是獨立的,所以可以根據(jù)所要顯示的頁數(shù)AspNetPager1.CurrentPageIndex,取得該頁數(shù)據(jù)datatable,然后再使用repeater等控件綁定:

            Repeater1.DataSource = dt;
            Repeater1.DataBind();

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

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多