This course focuses on the lifecycle of Razor Pages, including how to handle different HTTP methods, customize page handlers, and use lifecycle events. By the end of this course, you will have a deeper understanding of how to manage the behavior of your Razor Pages applications.
Overview
Syllabus
- Lesson 1: Introduction to Page Handlers
- Run and Understand Page Handlers
- Update Default Message in Razor Pages
- Fix the Favorite Book Form
- Logging Favorite Color to Console
- Add Default Values for a Movie
- Write Handlers: Favorite TV Show
- Lesson 2: Handling Different HTTP Methods
- Handling GET and POST Requests
- Handle GET and POST for Songs
- Fix the Get Request Bug
- Add GET and POST Handlers
- Add Superhero Power Functionality
- Lesson 3: Customizing Handler Methods and Error Handling
- Custom Error Handling in Razor Pages
- Fix Error Handling in Razor Pages
- Add Error Handling for 502
- Adding 502 Error Handling
- Handling a Forbidden Error
- Lesson 4: Lifecycle Events in Razor Pages
- Observe Lifecycle Events in Action
- Fix the Razor Page Lifecycle
- Make Lifecycle Handlers Async-Friendly
- Implement Patch Request Handler
- Async Superhero Data Management