- [Instructor] At this point in the course, … I've shown you how to create controllers that contain … the application logic, views that contain the mark up … that the user sees, and even ways to re-use that mark up … in the form of layouts and partial views. … But there's one scenario that isn't easily solved … by these features, to find a good example of this … we have to look no further than the home page … of our sample application. … See this section labeled monthly specials? … In the left-hand column? … That section is currently just hard coded HTML … in our layout, but if it had a real implementation … it would involve going to the database … and grabbing the latest monthly specials. … Now if that were in a normal view that would be … no problem, since the controller would simply … retrieve the required data, and pass it to the view. … However since this markup is in our layout, … every single action that implemented this layout … would have to know how to get these monthly specials. …
Author
Updated
5/3/2019Released
12/6/2016- Building blocks of ASP.NET Core applications
- Creating a new project
- Responding to HTTP requests
- Serving static files
- Understanding the MVC pattern
- Handling requests with controllers
- Routing
- Rendering HTML with Razor
- Rendering data, view markup, and view logic
- Creating HTML forms
- Validating form data
- Reading and writing from a database with Entity Framework
- Improving the user experience
- Exposing data with a web API
- Securing your ASP.NET application
Skill Level Intermediate
Duration
Views
Related Courses
-
Introduction
-
Welcome1m 16s
-
What you should know2m 6s
-
What's new2m 33s
-
-
1. The Basics
-
Create a new project4m 44s
-
Respond to HTTP requests5m 32s
-
Serving static files2m 18s
-
Use custom configuration4m 21s
-
2. The Model-View-Controller (MVC) Pattern
-
Understand routing4m 24s
-
3. Render HTML with Views
-
Render HTML with Razor3m 51s
-
-
4. Work with Data
-
Validate form post data5m 55s
-
5. Creating Reusable Components
-
6. Secure Your Application
-
Conclusion
-
Next steps1m 42s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Creating reusable components with view components