Пример #1
0
 /// <summary>
 /// 绑定控件
 /// </summary>
 /// <param name="dataSource"></param>
 /// <param name="rpeater"></param>
 /// <param name="commonPager"></param>
 protected void BindControl(object dataSource, Repeater repeater, CommonPager commonPager)
 {
     if (repeater != null)
     {
         repeater.DataSource = dataSource;
         repeater.DataBind();
     }
     if (commonPager != null)
     {
         commonPager.CurrentPage = CurrentPage;
         commonPager.PageSize    = PageSize;
         commonPager.Count       = Count;
     }
 }
Пример #2
0
 protected void BindControl(CommonPager commonPager)
 {
     this.BindControl(null, null, commonPager);
 }