Join Jess Chadwick for an in-depth discussion in this video Serve static files, part of Learn ASP.NET Core MVC: The Basics.
- [Instructor] In this video, I'm going to show you…how to use ASP.NET Core middleware…to start responding to requests…with static content such as HTML pages and CSS.…Take a look at the Artifacts folder…in chapter one of your exercise files…and look in the site folder.…This folder contains all of the static HTML and CSS…for the Explore California site that I showed earlier.…I'll use this static content as the first thing…that we host in this new…ASP.NET Core application I'm building.…
In order to host these files,…the first thing I have to do…is drop them into the wwwroot folder underneath my project.…I'll do that by copying the files…and then pasting them into the wwwroot folder in my project.…The wwwroot folder is kind of a safeguard.…Unlike previous versions of ASP.NET,…where you had to put all of your application code…and static files all into one application folder,…potentially making them all viewable to the outside world,…ASP.NET Core actually encourages you to separate…the two types of files.…
Throughout the rest of this course,…
- 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
- 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
1. The Basics
2. The Model-View-Controller (MVC) Pattern
Understand routing4m 24s
3. Render HTML with Views
4. Work with Data
5. Improve User Experience with Ajax and Web APIs
6. Secure Your Application
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.Cancel
Take 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.