private void ProcessQueryBatchResponse(List <BatchDetailData> _BDD) { chklstTMSResults.Items.Clear(); //Check for the need of paging if (_BDD.Count > _intResultsPerPage - 1) { lblPageNumber.Text = @"Page : " + (_intCurrentPage + 1); lblPageNumber.Visible = true; LnkNext.Visible = true; LnkPrevious.Visible = (_intCurrentPage > 0 ? true : false);//Enable previous on page 2 } else { lblPageNumber.Text = @"Page : " + (_intCurrentPage + 1); LnkNext.Visible = false; //End of the list so disable the Next link LnkPrevious.Visible = (_intCurrentPage > 0 ? true : false); //Enable previous on page 2 } if (_BDD.Count > 0) { foreach (BatchDetailData b in _BDD) { BatchDetailData BDD = new BatchDetailDataVal(b); chklstTMSResults.Items.Add(BDD); } } }
private void ProcessQueryBatchResponse(List<BatchDetailData> _BDD) { chklstTMSResults.Items.Clear(); //Check for the need of paging if (_BDD.Count > _intResultsPerPage - 1) { lblPageNumber.Text = @"Page : " + (_intCurrentPage + 1); lblPageNumber.Visible = true; LnkNext.Visible = true; LnkPrevious.Visible = (_intCurrentPage > 0 ? true : false);//Enable previous on page 2 } else { lblPageNumber.Text = @"Page : " + (_intCurrentPage + 1); LnkNext.Visible = false;//End of the list so disable the Next link LnkPrevious.Visible = (_intCurrentPage > 0 ? true : false);//Enable previous on page 2 } if (_BDD.Count > 0) { foreach (BatchDetailData b in _BDD) { BatchDetailData BDD = new BatchDetailDataVal(b); chklstTMSResults.Items.Add(BDD); } } }