Beispiel #1
0
        protected void ButtonUpdateEducInfo_Click(object sender, EventArgs e)
        {
            RequestUpdateEducationalInfo requestUpdateEducInfo = new RequestUpdateEducationalInfo();

            requestUpdateEducInfo.Username      = Session["Username"].ToString();
            requestUpdateEducInfo.EducInfoID    = int.Parse(txtEducInfoID.Text);
            requestUpdateEducInfo.School        = txtGraduateSchool.Text;
            requestUpdateEducInfo.Degree        = DropDownList1.SelectedItem.ToString();
            requestUpdateEducInfo.Course        = txtCourseTaken.Text;
            requestUpdateEducInfo.YearGraduated = int.Parse(txtYearGraduated.Text);

            DAT.UpdateEducInfo(requestUpdateEducInfo);
            Response.Write("<script language='javascript'>alert('Successfully Updated School!')</script>");
        }