Join Jess Chadwick for an in-depth discussion in this video Use custom configuration, part of Learn ASP.NET Core MVC: The Basics.
- [Instructor] Earlier,…I showed you this conditional statement,…right here on line 28,…that determines whether or not…to enable the developer diagnostics page.…Currently, this conditional setting…is driven off a special environment variable…that ASP.NET Core looks for,…as I showed in the previous video.…Now, there's nothing wrong with this approach…to turn certain things on and off…based on whether or not we're in development mode,…but personally, I like to be able…to turn specific features on and off…using their own configuration settings.…
So, in this video,…I'll use ASP.NET Core's configuration library…to create a configuration setting just for this feature.…Like any other ASP.NET Core library,…the configuration library comes in a package…that must be added to your project.…Lucky for us, the configuration package…is a dependency of the logging package…that Microsoft included in the default template,…which means that it's already been added to the project,…so we can just begin using it.…The first thing we need to do…
- 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.