Пример #1
0
        public void Bind(string title)
        {
            var             list = rolesSvc.GetRolesByTitle(title);
            PagedDataSource pds  = new PagedDataSource();

            pds.DataSource               = list;
            pds.AllowPaging              = true;
            pds.CurrentPageIndex         = AspNetPager1.CurrentPageIndex - 1;
            pds.PageSize                 = AspNetPager1.PageSize;
            AspNetPager1.RecordCount     = list.Count;
            this.RepRolesList.DataSource = pds;
            this.RepRolesList.DataBind();
        }