private void ProcessQueryTransactionsDetailResponse(List <TransactionDetail> _TD) { chklstTMSResults.Items.Clear(); //Check for the need of paging if (_TD.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 (_TD.Count > 0) { foreach (TransactionDetail t in _TD) { TransactionDetailVal TDV = new TransactionDetailVal(t); chklstTMSResults.Items.Add(TDV); } } }
private void ProcessQueryTransactionsDetailResponse(List<TransactionDetail> _TD) { chklstTMSResults.Items.Clear(); //Check for the need of paging if (_TD.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 (_TD.Count > 0) { foreach (TransactionDetail t in _TD) { TransactionDetailVal TDV = new TransactionDetailVal(t); chklstTMSResults.Items.Add(TDV); } } }