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
In the previous video we resolved the issue with the description in our view, but the array of artists is still not rendering properly. Letβs see how to use Razor to display a list of values.
Follow Along
To follow along commiting your changes to this course, you'll need to fork the aspnet-comic-book-gallery repo. Then you can clone, commit, and push your changes to your fork like this:
git clone <your-fork>
cd aspnet-comic-book-gallery
git checkout tags/v3.3 -b displaying-a-list-with-razor
Additional Learning
Hereβs an introduction to the Razor syntax on the official ASP.NET website.
Hereβs a great blog post from Phil Haack containing a Razor syntax quick reference. Very handy!
Keyboard Shortcuts
-
CTRL+K+C
- Comment selection -
CTRL+K+U
- Uncomment selection
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