private void getHROfficerPMSReportAndDisplayToUser (string sDate, string eDate) { TransactionResponse response = null; employeeManager = new EmployeeManager(); try { // Notification Manager. response = employeeManager.getHROfficerPMSReportResult(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 PMS report for HR Officer/Clerk. please contact your system administrator"; } }