private void GetGridDetails() { var gridDetails = new ItemsModel().GetItemDetails(pageItemType, EnumsManager.GetSortByOption(sortBy, ascending), currentViewPerPage, (currentPage - 1) * currentViewPerPage, searchCriteria); foreach (var item in gridDetails) { var liControl = HTMLControlsManager.GetCustomTag("li", new[] { "item col-lg-4", "col-md-3", "col-sm-4", "col-xs-12" }); gridItemsList.Controls.Add(liControl); { var itemInnerDivControl = ItemHtmlManager.Get_ItemInner_Grid_DivControl(item); liControl.Controls.Add(itemInnerDivControl); } } }
private void GetListDetails() { var gridDetails = new ItemsModel().GetItemDetails(pageItemType, EnumsManager.GetSortByOption(sortBy, ascending), currentViewPerPage, (currentPage - 1) * currentViewPerPage, searchCriteria); foreach (var item in gridDetails) { var liControl = HTMLControlsManager.GetCustomTag("li", new[] { "item odd" }); productsList.Controls.Add(liControl); { var prodImageDivControl = ItemHtmlManager.Get_ProductImage_List_DivControl(item); liControl.Controls.Add(prodImageDivControl); var prodDetailsDivControl = ItemHtmlManager.Get_ProductDetails_List_DivControl(item); liControl.Controls.Add(prodDetailsDivControl); } } }