This course will be retired on July 14, 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
- Adding a View 4:03
- Adding a View Review 5 questions
- Using Razor for View Layout 5:30
- Using the Razor Syntax 1 objective
- Displaying a List with Razor 4:16
- Displaying a List of Values 1 objective
- Setting Data in the Controller 5:51
- Using ViewBag 2 objectives
- Adding Design Files 4:41
- View Layouts 5:42
- Section Review 5 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
The “_Layout.cshtml” file provides the overall look and feel for every page on our website. Let’s take a look at that file.
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.6 -b view-layouts
Additional Learning
For more information about creating responsive layouts, see this Treehouse course.
For more information about Bootstrap, jQuery, or Modernizr, see the following websites.
Microsoft’s ASP.NET website has a great walkthrough on how to use layout pages to create a consistent look and feel for your websites.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Cedric Vincent H
480 Points0 Answers
-
Britton Kitchell
Full Stack JavaScript Techdegree Graduate 14,927 Points1 Answer
-
Dave Jacob
242 PointsCode does not work with VS 2017. Can we update the github code to work with VS2017?
Posted by Dave JacobDave Jacob
242 Points0 Answers
-
Jeff Spurlock
8,859 Points3 Answers
-
Seth Rosenbauer
2,808 Points1 Answer
-
PJ Wehry
13,997 Points2 Answers
-
Jacob Dillson
2,932 PointsMy static files seem to not be rendered when the IIS is running....
Posted by Jacob DillsonJacob Dillson
2,932 Points1 Answer
View all discussions for this video
Related 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