private void showAssessmentnCareCommentnDateData() { AssessmentnCareCommentnDate assessmentnCareCommentnDate = new AssessmentnCareCommentnDate(); assessmentnCareCommentnDate = AssessmentnCareCommentnDateManager.GetAssessmentnCareCommentnDateByID(Int32.Parse(Request.QueryString["assessmentnCareCommentnDateID"])); ddlAssessmentnCareDate.SelectedValue = assessmentnCareCommentnDate.AssessmentnCareDateID.ToString(); ddlAssessmentnCareParent.SelectedValue = assessmentnCareCommentnDate.AssessmentnCareParentID.ToString(); txtComment.Text = assessmentnCareCommentnDate.Comment; }
protected void btnUpdate_Click(object sender, EventArgs e) { AssessmentnCareCommentnDate assessmentnCareCommentnDate = new AssessmentnCareCommentnDate(); assessmentnCareCommentnDate = AssessmentnCareCommentnDateManager.GetAssessmentnCareCommentnDateByID(Int32.Parse(Request.QueryString["assessmentnCareCommentnDateID"])); AssessmentnCareCommentnDate tempAssessmentnCareCommentnDate = new AssessmentnCareCommentnDate(); tempAssessmentnCareCommentnDate.AssessmentnCareCommentnDateID = assessmentnCareCommentnDate.AssessmentnCareCommentnDateID; tempAssessmentnCareCommentnDate.AssessmentnCareDateID = Int32.Parse(ddlAssessmentnCareDate.SelectedValue); tempAssessmentnCareCommentnDate.AssessmentnCareParentID = Int32.Parse(ddlAssessmentnCareParent.SelectedValue); tempAssessmentnCareCommentnDate.Comment = txtComment.Text; bool result = AssessmentnCareCommentnDateManager.UpdateAssessmentnCareCommentnDate(tempAssessmentnCareCommentnDate); Response.Redirect("AdminAssessmentnCareCommentnDateDisplay.aspx"); }