Ejemplo n.º 1
0
    protected void Dvw_EducationalDetails_ModeChanging(object sender, DetailsViewModeEventArgs e)
    {
        try
        {
            if (Dvw_EducationalDetails.CurrentMode == DetailsViewMode.Edit)
            {
                Dvw_EducationalDetails.ChangeMode(DetailsViewMode.ReadOnly);
            }
            else
            {
                Dvw_EducationalDetails.ChangeMode(DetailsViewMode.Edit);
            }
            Student        Student     = new Student();
            Student_BLogic BAL_Student = new Student_BLogic();
            Student.studentid = AppSessions.StudentID;
            DataSet dsSelect = new DataSet();
            dsSelect = BAL_Student.BAL_Student_Select(Student, "SelectByID");


            Dvw_EducationalDetails.DataSource = dsSelect;
            Dvw_EducationalDetails.DataBind();
        }
        catch (Exception ex)
        {
        }
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Student        Student     = new Student();
            Student_BLogic BAL_Student = new Student_BLogic();
            Student.studentid = AppSessions.StudentID;
            DataSet dsSelect = new DataSet();
            dsSelect = BAL_Student.BAL_Student_Select(Student, "SelectByID");

            Dvw_PersonalDetails.DataSource = dsSelect;
            Dvw_PersonalDetails.DataBind();

            Dvw_ParentGuardianDetails.DataSource = dsSelect;
            Dvw_ParentGuardianDetails.DataBind();

            Dvw_EducationalDetails.DataSource = dsSelect;
            Dvw_EducationalDetails.DataBind();
        }
    }
Ejemplo n.º 3
0
    protected void Dvw_EducationalDetails_ItemUpdating(object sender, DetailsViewUpdateEventArgs e)
    {
        try
        {
            if (Dvw_EducationalDetails.CurrentMode == DetailsViewMode.Edit)
            {
                Label   lbl_findStudentid     = (Label)Dvw_EducationalDetails.Rows[0].FindControl("Lbl_EditEduStudentId");
                TextBox Txt_findSchoolName    = (TextBox)Dvw_EducationalDetails.Rows[2].FindControl("Txt_EditSchool");
                TextBox Txt_findSchoolContact = (TextBox)Dvw_EducationalDetails.Rows[3].FindControl("Txt_EditSchoolContact");
                TextBox Txt_findSchoolEmail   = (TextBox)Dvw_EducationalDetails.Rows[4].FindControl("Txt_EditSchoolEmail");

                Student_BLogic obj_studblogic = new Student_BLogic();
                Student        obj_student    = new Student();

                obj_student.studentid     = int.Parse(lbl_findStudentid.Text);
                obj_student.schoolname    = Txt_findSchoolName.Text;
                obj_student.SchoolContact = Txt_findSchoolContact.Text;
                obj_student.SchoolEmail   = Txt_findSchoolEmail.Text;

                obj_studblogic.UpdateStudentProfile(obj_student, "education");

                Dvw_EducationalDetails.ChangeMode(DetailsViewMode.ReadOnly);

                Student        Student     = new Student();
                Student_BLogic BAL_Student = new Student_BLogic();
                Student.studentid = AppSessions.StudentID;
                DataSet dsSelect = new DataSet();
                dsSelect = BAL_Student.BAL_Student_Select(Student, "SelectByID");

                Dvw_EducationalDetails.DataSource = dsSelect;
                Dvw_EducationalDetails.DataBind();

                TrackLog_Utils.Log(Convert.ToInt32(AppSessions.SchoolID), Convert.ToInt32(AppSessions.EmployeeOrStudentID), Convert.ToInt16(AppSessions.DivisionID), StringEnum.stringValueOf(EnumFile.AccessedPages.AccessMyAccount), "Save Button", "Click", Convert.ToDateTime(System.DateTime.Now), HttpContext.Current.Session.SessionID, StringEnum.stringValueOf(EnumFile.Activity.MyAccountProfileSectionUpdated), "Updated Educational Details.", 0);
            }
        }
        catch (Exception ex)
        {
        }
    }