免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
AspNetPager使用方法(精)

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

AspNetPager.dll下載的地址 

1、首先引用AspNetPager.dll;

2、在所使用的前臺(tái)頁面加入:<%@ 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>

 標(biāo)紅的是點(diǎn)擊觸發(fā)事件:

       在.cs后臺(tái)頁面加上此方法:

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

4、同時(shí),還要指定以下值: 

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

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

5、因?yàn)樵摽丶c數(shù)據(jù)顯示和綁定是獨(dú)立的,所以可以根據(jù)所要顯示的頁數(shù)AspNetPager1.CurrentPageIndex,取得該頁數(shù)據(jù)datatable,然后再使用repeater等控件綁定:

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

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服