private void getEmployeeRemarkReportAndDisplayToUser(string sDate, string eDate) { TransactionResponse response = null; employeeManager = new EmployeeManager(); try { // Notification Manager. response = employeeManager.getEmployeeRemarkResult(sDate, eDate); DataTable dataTable = null; if (response.isSuccessful()) { //get Data from TransactionResponse dataTable = (DataTable)response.Data; if (dataTable != null && dataTable.Rows.Count > 0) { reportGV.DataSource = dataTable; reportGV.DataBind(); } } //display message to user. displayMessageToTheUser(response); } //CATCH ANY OTHER EXCEPTION, dont let user see any kind of unexpected error catch (Exception ex) { msgPanel.Visible = true; ErroroDIV.Visible = true; lblErrorMsg.Text = "Unknow error occour while trying to get inactive employee. please contact your system administrator"; } }