Exemple #1
0
 // Removes the selected student and all the enrolled courses he/she has.
 protected void RemoveStudentImageButton_Click(object sender, ImageClickEventArgs e)
 {
     selectedStudent = ViewState["SelectedStudent"] as Student;
     studentController.DeleteStudentAndDependencies(selectedStudent);
     Response.Redirect(string.Format("~/Home?removedFirstName={0}&removedLastName={1}", selectedStudent.FirstMidName, selectedStudent.LastName));
 }