// Enrolls the student into the given course.
        protected void EnrollStudentImageButton_Click(object sender, ImageClickEventArgs e)
        {
            ImageButton enrollStudentImageButton = sender as ImageButton;
            Student     student = courseController.FindStudentById(int.Parse(enrollStudentImageButton.CommandArgument));

            courseController.InsertEnrollment(new Enrollment(0, ViewState["SelectedCourse"] as Course, student, 0));
            Response.Redirect(string.Format("CourseManagement?course={0}&enrolledFirstName={1}&enrolledLastName={2}", Request.QueryString["course"], student.FirstMidName, student.LastName));
        }