Beispiel #1
0
        private void LoadData()
        {
            List <User> lst      = TNHelper.GetAllFrontEndUsers();
            int         totalRow = 0;

            if (lst != null)
            {
                totalRow = lst.Count;
                lst      = lst.Skip((PageIndex - 1) * PageSize)
                           .Take(PageSize).ToList();
            }
            pager.ItemCount = totalRow;

            if (lst != null)
            {
                rptList.DataSource = lst;
                rptList.DataBind();
            }
        }