@page @model IndexModel @{ ViewData["Title"] = "Home page"; } @using (Html.BeginForm()) {

Project 4: Advanced Project

Aurel Villyani

@* *@ @if (ViewData["showInstructorList"] != null) { @Html.DropDownList("instructorList", (IEnumerable)ViewData["showInstructorList"]) } @if (ViewData["showInstructorInformation"] != null) { var showData = ViewData["showInstructorInformation"] as System.Data.DataTable; var students = ViewData["students"] as System.Data.DataTable; // Get student in course // @foreach (System.Data.DataRow row in showData.Rows) {
Course No Course Name Students Section Number Starting Date Location Capacity
@row["course_id"] @row["course_name"] @foreach (System.Data.DataRow student in students.Rows) { if (student["course_id"].Equals(row["course_id"]) && student["section_number"].Equals(row["section_number"])) { } }
Student ID Student Name
@student["student_id"] @student["student_name"]
@row["section_number"] @row["starting_date"] @row["location"] @row["capacity"]
} }
}