Posted on: 8/20/2013 5:51:29 PM | Views : 555

public void GetTableData(int index, List<SubCategory> subcatList, int PageSize, string type) { int count = 0; int number = 0; lowerbound = (index - 1) * PageSize; upperbound = (index * PageSize) - 1; IEnumerable<SubCategory> take = subcatList.Skip((index - 1) * PageSize).Take(PageSize); int numberOfRows = 3; int numberofColumns = take.Count() / numberOfRows + 1; number = take.Count(); for (int row = 0; row < 3; row++) { HtmlTableRow tblrows = new HtmlTableRow(); bool broke = false; for (int col = 0; col < 3; col++) { if (count >= take.Count()) { broke = true; break; } HtmlTableCell tblcells = new HtmlTableCell(); HtmlGenericControl span = new HtmlGenericControl("span"); System.Web.UI.HtmlControls.Htm ...

Go to the complete details ...