示例#1
0
    private void showAssessmentnCareParentData()
    {
        AssessmentnCareParent assessmentnCareParent = new AssessmentnCareParent();

        assessmentnCareParent = AssessmentnCareParentManager.GetAssessmentnCareParentByID(Int32.Parse(Request.QueryString["assessmentnCareParentID"]));

        txtAssessmentnCareParentName.Text = assessmentnCareParent.AssessmentnCareParentName;
    }
示例#2
0
    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");
    }