Join Jess Chadwick for an in-depth discussion in this video Handle requests with controllers, part of Learn ASP.NET Core MVC: The Basics.
- [Instructor] Now that we've got…the ASP.NET Core MVC middleware registered…in the application pipeline,…let's add some controllers.…Controllers are the traffic cop of your MVC application.…They are responsible for receiving the request…and figuring out what to do with it.…In an ASP.NET Core MVC application,…controllers are nothing more than classes.…So in order to create a new controller,…all you've got to do is add a new class to your application.…Though ASP.NET Core MVC will find controller classes…regardless of where they live in your project,…the standard convention,…simply for the sake of keeping your project organized,…is to put all of your controller classes…in a folder named Controllers.…
Now with that folder in place,…let's add our new controller class.…To do this, right click on the Controllers folder…that we just created,…and select Add, New Item,…MVC Controller Class.…Then, just accept the default name of HomeController.…Notice how Visual Studio automatically defines a method…in this new controller class named Index.…
- 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.