List<MDL_NONMOLSalaryDetail> pagingList = (from o in objDetailList select o).Where(x => (x.EmployeeID.ToLower().Contains(txt_Srch_EmployeeName.Text.ToLower().Trim()) || txt_Srch_EmployeeName.Text.Trim() == "") || (x.EmployeeName.ToLower().Contains(txt_Srch_EmployeeName.Text.ToLower().Trim()) || txt_Srch_EmployeeName.Text.Trim() == "") || (x.EmployeeAccount.ToLower().Contains(txt_Srch_AccNo.Text.ToLower().Trim()) || txt_Srch_EmployeeName.Text.Trim() == "") || (x.IsEdited.Equals(1) || txt_Srch_EmployeeName.Text.Trim() == "") ).Skip(LeftStart).Take(TopRecords).ToList<MDL_NONMOLSalaryDetail>(); int pageCount = (from o in objDetailList select o).Where(x => (x.EmployeeID.ToLower().Contains(txt_Srch_EmployeeName.Text.ToLower().Trim()) || txt_Srch_EmployeeName.Text.Trim() == "") || (x.EmployeeName.ToLower().Contains(txt_Srch_EmployeeName.Text.ToLower().Trim()) || txt_Srch_EmployeeName.Text.Trim() == "") || (x.EmployeeAccount.ToLower().Contains(txt_Srch_AccNo.Text.ToLower().Trim()) || txt_Srch_EmployeeName.Text.Trim() == "") || (x.IsEdited.Equals(1) || txt_Srch_EmployeeName.Text.Trim() == "") ).Count();
.Count()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)