private void showAssessmentnCareParentData() { AssessmentnCareParent assessmentnCareParent = new AssessmentnCareParent(); assessmentnCareParent = AssessmentnCareParentManager.GetAssessmentnCareParentByID(Int32.Parse(Request.QueryString["assessmentnCareParentID"])); txtAssessmentnCareParentName.Text = assessmentnCareParent.AssessmentnCareParentName; }
protected void btnUpdate_Click(object sender, EventArgs e) { AssessmentnCareParent assessmentnCareParent = new AssessmentnCareParent(); assessmentnCareParent = AssessmentnCareParentManager.GetAssessmentnCareParentByID(Int32.Parse(Request.QueryString["assessmentnCareParentID"])); AssessmentnCareParent tempAssessmentnCareParent = new AssessmentnCareParent(); tempAssessmentnCareParent.AssessmentnCareParentID = assessmentnCareParent.AssessmentnCareParentID; tempAssessmentnCareParent.AssessmentnCareParentName = txtAssessmentnCareParentName.Text; bool result = AssessmentnCareParentManager.UpdateAssessmentnCareParent(tempAssessmentnCareParent); Response.Redirect("AssessmentnCare.aspx"); }