testapps/ContosoUniversityWeb/Pages/Students/Delete.cshtml (36 lines of code) (raw):

@page @model ContosoUniversity.Pages.Students.DeleteModel @{ ViewData["Title"] = "Delete"; } <h1>Delete</h1> <h3>Are you sure you want to delete this?</h3> <div> <h4>Student</h4> <hr /> <dl class="row"> <dt class="col-sm-2"> @Html.DisplayNameFor(model => model.Student.LastName) </dt> <dd class="col-sm-10"> @Html.DisplayFor(model => model.Student.LastName) </dd> <dt class="col-sm-2"> @Html.DisplayNameFor(model => model.Student.FirstMidName) </dt> <dd class="col-sm-10"> @Html.DisplayFor(model => model.Student.FirstMidName) </dd> <dt class="col-sm-2"> @Html.DisplayNameFor(model => model.Student.EnrollmentDate) </dt> <dd class="col-sm-10"> @Html.DisplayFor(model => model.Student.EnrollmentDate) </dd> </dl> <form method="post"> <input type="hidden" asp-for="Student.ID" /> <input type="submit" value="Delete" class="btn btn-danger" /> | <a asp-page="./Index">Back to List</a> </form> </div>