Search
Contents
13.
Razor Views
13.
Razor Views
¶
13.1. Templates
13.1.1. Templates are Frameworks
13.1.1.1. No Template
13.1.1.2. A Better Way
13.1.1.3. Templates Support Dynamic Content
13.1.2. Templates Provide Structure, Not Content
13.1.3. Check Your Understanding
13.2. Creating a Template
13.2.1. Razor
13.2.2. Hello Views
13.2.2.1. Controllers Return View Templates
13.2.2.2. Add a Template
13.2.3. Check Your Understanding
13.3. Using a Template
13.3.1. Passing Data to a Template
13.3.1.1. Accessing Data in a Template
13.3.2. Check Your Understanding
13.4. Iterating in a Template
13.4.1. Nested Loops
13.4.2. Check Your Understanding
13.5. Conditionals in a Template
13.5.1. Display Content
if/else
13.5.1.1. Nesting Logic
13.5.1.2. Adding vs. Displaying/Hiding
13.5.2. Try It!
13.5.3. Check Your Understanding
13.6. Razor Forms
13.6.1. Start a New Project
13.6.2. CodingEvents Setup - Video
13.6.3. CodingEvents Setup - Text
13.6.4. Create and Render a Form - Video
13.6.5. Create and Render a Form - Text
13.6.6. Handle Form Submission - Video
13.6.7. Handle Form Submission - Text
13.7. The Shared Directory
13.7.1. Layout pages
13.7.2. Partial Views
13.7.2.1. Making a Partial View
13.7.2.2.
<partial>
13.7.3. Check Your Understanding
13.8. Static Resources
13.8.1. Adding Custom Styles
13.8.2. Add Custom Scripts
13.8.3. Adding Images to the Site
13.8.4. Check Your Understanding
13.9. Bootstrap
13.9.1. Introduction
13.9.2. Bootstrap Layout
13.9.3. Bootstrap Tables
13.9.4. Bootstrap Forms
13.9.5. Check Your Understanding
13.10. Exercises: Razor Views
13.10.1. Getting Started
13.10.2. Expanding our Events Schedule
13.11. Studio: Spa Day!
13.11.1. Setup
13.11.2. The Customer Profile
13.11.3. List All Appropriate Facial Treatments
13.11.4. Mani or Pedi?
13.11.5. End Result
13.11.6. Bonus Mission
←
12.4.
Studio: If It Ain’t Broke, Add a Breakpoint!
13.1.
Templates
→