This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Let's take our first look at the Comic Book Library Manager, the web app that we'll be working on throughout this course. We'll also review the steps that we'll take to build out our Visual Studio solution.
Comic Book Library Manager Web App
The Comic Book Library Manager web app can be viewed at http://comic-book-library-manager.azurewebsites.net/
UI Options for Managing One-to-Many or Many-to-Many Relationships
Our approach for managing a list of records relies upon building additional pages to create, update, and delete the child records. While this approach works, it pulls the user out of the context of editing a comic book.
An alternative approach would be to update the "Edit Comic Book" page, so that every aspect of a comic book record—including its child comic book artist records—could be edited from that page. To do that, we could leverage JavaScript to create an editable list of child records.
In order to give ASP.NET MVC model binding what it needs in order to successfully bind a form post in the Edit
controller POST action method, we'd need to have our JavaScript code manipulate HTML form fields—either shown or hidden—one set per child record.
Another possibility would be to leverage a client side JavaScript framework like Angular or React to build a single-page application or SPA. Building a SPA is a huge departure from the server side rendered application that we're building in this course, but making that change would allow us to build a more dynamic user interface.
Responsive Design Resources
For more information on how to create responsive layouts, see these Treehouse courses.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up