Example #1
0
        protected void LoadData()
        {
            var modulesBox = ModulesService.GetModules();

            paging.TotalPages           = (int)Math.Ceiling((double)modulesBox.Items.Count / ItemsPerPage);
            lvModulesManager.DataSource = modulesBox.Items.Skip((paging.CurrentPage - 1) * ItemsPerPage).Take(ItemsPerPage);
            lvModulesManager.DataBind();
        }
Example #2
0
 protected void LoadData()
 {
     var modulesBox = ModulesService.GetModules();
     //if (modulesBox.Message.IsNullOrEmpty())
     {
         lvModules.DataSource = modulesBox.Items.OrderBy(t => t.Name);
         lvModules.DataBind();
     }
 }