public void checkIfPreviuosTabSaved() { DataSet dsProfile = new DataSet(); dsProfile = KNHStatic.CheckIfPreviuosTabSaved("PsychosocialAEProfile", Convert.ToInt32(Session["PatientVisitId"])); buttonEnabledAndDisabled(dsProfile, btnAssessmentSave, btnAssessmentPrint); DataSet dsAssessment = new DataSet(); dsAssessment = KNHStatic.CheckIfPreviuosTabSaved("PsychosocialAEAssessment", Convert.ToInt32(Session["PatientVisitId"])); buttonEnabledAndDisabled(dsAssessment, btnManagementsave, btnManagamentPrint); dsProfile.Dispose(); dsAssessment.Dispose(); }