Question
Do by yourself: Open the MVC application name EnrollmentApplication (created in Lab 4) If you dont know lab 4 (https://www.chegg.com/homework-help/questions-and-answers/using-visual-studio-2017-need-assistance-following-application-create-new-mvc-application--q26888608) Add the following to the
Do by yourself: Open the MVC application name EnrollmentApplication (created in Lab 4)
If you dont know lab 4 (https://www.chegg.com/homework-help/questions-and-answers/using-visual-studio-2017-need-assistance-following-application-create-new-mvc-application--q26888608)
Add the following to the Enrollment class under Model folder. IsActive (Boolean type) AssignedCampus(String) EnrollmentSemester(String) EnrollmentYear(Integer)
Build the application In the EnrollmentController, update the new fields to the bindings as needed. Add the fields to Create view and Edit view using the Strongly typed Htmlhelpers (example @Html.LabelFor instead of @Html.Label) IsActive will be a Checkbox AssignedCampus will be a textbox EnrollmentSemester will be a radiobutton {Spring, Summer, Fall are the options} EnrollmentYear will be a textbox All new fields should have Labels in front of them. Add the fields to the Details view using Strongly types HtmlHelpers IsActive will be a Checkbox AssignedCampus will be a textbox Use @Html.DisplayFor instead of @Html.RadioButtonFor for EnrollmentSemester EnrollmentYear will be a textbox All new fields should have Labels in front of them. Run the application. Create a new enrollment. This should show the 4 new fields also. Add a student and save the changes. Details view should show the new student and also have the 4 new fields. Edit an enrollment, make changes to the 4 new fields, save it. Details view should show the updates made to the 4 new fields. Capture screenshots in a word document.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started