public void savePH9Data(object sender, EventArgs e) { try { Hashtable HT = TBHT(); PH9ScreeningManager = (IKNHStaticForms)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHStaticForms, BusinessProcess.Clinical"); PH9ScreeningManager.SaveUpdatePH9Data(HT); } catch (Exception ex) { //Page.ClientScript.RegisterStartupScript(this.GetType(), "TBSaveUpdateError", "alert('Error encountered. Please contact the system administrator');", true); ScriptManager.RegisterStartupScript(this, this.GetType(), "TBSaveUpdateError", "alert('Error encountered. Please contact the system administrator');", true); } }