protected void BtnClosePCClick(object sender, EventArgs e) { DataTable dt = CreatePresentingPCTable(); foreach (GridDataItem item in RadGridPresenting.Items) { Label lblPresenting = (Label)item.FindControl("lblPresenting"); CheckBox chkPresenting = (CheckBox)item.FindControl("ChkPresenting"); RadTextBox txtPresenting = (RadTextBox)item.FindControl("txtPresenting"); if (chkPresenting.Checked == true) { DataRow DR = dt.NewRow(); DR["ID"] = lblPresenting.Text; DR["NAME"] = chkPresenting.Text; DR["chkValText"] = txtPresenting.Text; dt.Rows.Add(DR); } } Page thePage = (Page)this.Parent.Page; PlaceHolder ph = (PlaceHolder)thePage.FindControl("phForms"); Touch.Custom_Forms.KNHAdultIEvaluationForm.DtPresenting = dt; Touch.Custom_Forms.KNHAdultIEvaluationForm.AditionalComplaints = txtAdditionPresentingComplaints.Text; Touch.Custom_Forms.KNHAdultIEvaluationForm theFrm = (Touch.Custom_Forms.KNHAdultIEvaluationForm)ph.FindControl("ID" + Session["CurrentFormName"].ToString()); if (theFrm != null) { theFrm.BindPresentingComp(); } RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "closeradloading", "CloseModalASPX('IDKNHAdultIEvaluationForm_TheModal_rwPresentingComplaints');", true); }
protected void btnClose_Click(object sender, EventArgs e) { TemperatureModal = txtRadTemperatureModal.Text; RespirationRateModal = txtRadRespirationRate.Text; HeartRateModal = txtRadHeartRate.Text; SystollicBloodPressureModal = txtRadSystollicBloodPressure.Text; DiastolicBloodPressureModal = txtRadDiastolicBloodPressure.Text; HeightModal = txtRadHeight.Text; WeightModal = txtRadWeight.Text; Page thePage = (Page)this.Parent.Page; PlaceHolder ph = (PlaceHolder)thePage.FindControl("phForms"); //Touch.Custom_Forms.KNHAdultIEvaluationForm fr = (Touch.Custom_Forms.KNHAdultIEvaluationForm)Page.LoadControl("Custom forms/KNHAdultIEvaluationForm.ascx"); //fr.ID = "ID" + Session["CurrentFormName"].ToString(); // ph.Controls.Add(fr); Touch.Custom_Forms.KNHAdultIEvaluationForm theFrm = (Touch.Custom_Forms.KNHAdultIEvaluationForm)ph.FindControl("ID" + Session["CurrentFormName"].ToString()); Touch.Custom_Forms.KNHAdultIEvaluationForm.Temperature = TemperatureModal; Touch.Custom_Forms.KNHAdultIEvaluationForm.RespirationRate = RespirationRateModal; Touch.Custom_Forms.KNHAdultIEvaluationForm.HeartRate = HeartRateModal; Touch.Custom_Forms.KNHAdultIEvaluationForm.SystollicBloodPressure = SystollicBloodPressureModal; Touch.Custom_Forms.KNHAdultIEvaluationForm.DiastolicBloodPressure = DiastolicBloodPressureModal; Touch.Custom_Forms.KNHAdultIEvaluationForm.Weight = WeightModal; Touch.Custom_Forms.KNHAdultIEvaluationForm.Height = HeightModal; if (theFrm != null) { theFrm.SetTextBox(); } RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "closeradloading", "CloseModalASPX('IDKNHAdultIEvaluationForm_TheModal_rwVital');", true); }