Пример #1
0
    void DisplayStudent(Int32 StudentNo)
    {
        clsStudent myStudent = new clsStudent();

        myStudent.Find(StudentNo);

        txtStudentPNumber.Text = myStudent.StudentPNumber;
        txtStudentNames.Text   = myStudent.StudentFullName;
        txtStudentDate.Text    = myStudent.StudentAdditionDate.ToString("dd/MM/yyyy");
        txtStartingYear.Text   = Convert.ToString(myStudent.StudentStartingYear);
        txtStudentAttendancePercentage.Text = Convert.ToString(myStudent.StudentAttendancePercentage);
        chkStudentExpelled.Checked          = myStudent.StudentExpelled;
        ddlStudentCourse.SelectedValue      = Convert.ToString(myStudent.StudentCourseNo);
        ddlStudentTutor.SelectedValue       = Convert.ToString(myStudent.StudentTutorNo);
    }