<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      aspnetpager的2種分頁方法

      <webdiyer:AspNetPager ID="AspNetPager1" UrlPaging="True" PageSize="20" runat="server" FirstPageText="首頁" LastPageText="尾頁" NextPageText="下一頁" PagingButtonSpacing="" PrevPageText="上一頁" ></webdiyer:AspNetPager>

      方法1.

      if (!this.IsPostBack)

      {

      int CurrentPageIndex = AspNetPager1.CurrentPageIndex;
      if (Request["page"] != null) { CurrentPageIndex = int.Parse(Request["page"]); }
      BindData(CurrentPageIndex);

      }

      void BindData(int CurrentPageIndex)

      {

      datatable dt=....................;

      PagedDataSource pds = new PagedDataSource();

      AspNetPager1.RecordCount = dt.Rows.Count;

      pds.AllowPaging = true;
      pds.PageSize = AspNetPager1.PageSize;
      pds.CurrentPageIndex = CurrentPageIndex;
      pds.DataSource = dt.DefaultView;
      this.rpMsgList.DataSource = pds; //可以綁定到Gridview 、datalist等數據控件上
      this.rpMsgList.DataBind();

      }

      不需要寫分頁事件代碼,因為UrlPaging="True",使用了URL分頁 &page=1之類的

      方法2.存儲過程分頁

      if (!this.IsPostBack)

      {

      int CurrentPageIndex = AspNetPager1.CurrentPageIndex;
      if (Request["page"] != null) { CurrentPageIndex = int.Parse(Request["page"]); }
      BindData(CurrentPageIndex);

      }

       

      void BindData(int CurrentPageIndex)
      {
      int pageCount = 0;
      int Counts = 0;//總記錄數
      rpList.DataSource = SqlHelper.PageProcedure("Company,UserInfo,City,County", " UserName ,CompanyName,SName,CityName,CountyName,Contact,CompanyTypeId,Company.addtime as CompanyAddtime,Status,UId", AspNetPager1.PageSize, CurrentPageIndex, 0, " Company.Status asc, Company.addtime ", 1, " where Company.CityId=City.CityId and City.isshow=1 and Company.CountyId=County.CountyId and County.isshow=1 and Company.UId=UserInfoId " + WebComm.StrWhereHelper.Get_Admin_Company_StrWhere(), "CompanyId", ref pageCount, ref Counts);
      AspNetPager1.RecordCount = Counts;
      AspNetPager1.CurrentPageIndex = CurrentPageIndex;
      rpList.DataBind();
      }

      不需要寫分頁事件代碼,因為UrlPaging="True",使用了URL分頁 &page=1之類的

      posted on 2014-07-16 09:17  八度空間  閱讀(313)  評論(0)    收藏  舉報

      導航

      主站蜘蛛池模板: 中方县| 国产区成人精品视频| 日韩一区在线中文字幕| 中文字幕有码无码AV| 成人亚洲国产精品一区不卡 | 国产精品视频白浆免费视频| 狠狠躁夜夜躁人人爽蜜桃| 日本成人午夜一区二区三区| 国产精品中文字幕观看| 亚洲高清WWW色好看美女| 亚洲精品电影院| 性欧洲大肥性欧洲大肥女 | 自拍偷拍一区二区三区四| 亚洲熟少妇在线播放999| 日韩精品理论片一区二区| 国产福利社区一区二区| 午夜毛片不卡免费观看视频| 狠狠躁夜夜躁人人爽天天古典| 在线免费不卡视频| 他掀开裙子把舌头伸进去添视频 | 亚洲中文字幕一区二区| 婷婷综合缴情亚洲| 久久99精品久久久久久青青| 亚洲欧美日韩人成在线播放| 国产熟女高潮一区二区三区| 国产av无码专区亚洲av软件| 最新中文字幕国产精品| 国产一区二区视频在线看| 国产日韩精品欧美一区灰| 亚洲少妇人妻无码视频| 波多野结衣一区二区三区高清av| 日本视频一区二区三区1| 北岛玲中文字幕人妻系列| 亚洲国产精品一区二区久| 久久综合色一综合色88| 日本毛茸茸的丰满熟妇| 亚洲天堂亚洲天堂亚洲色图| 男女爽爽无遮挡午夜视频| 亚洲一二区制服无码中字| 天堂а√在线最新版中文在线| 插入中文字幕在线一区二区三区|