Introduction to ASP.NET Core Razor Pages
summary
Razor Pages in ASP.NET Core 2.0 is a page‑focused layer inside MVC that uses the same view engine and supports ActionResults, Filters, model binding/validation, Tag Helpers, routing and URL generation. The demo builds a CRUD customers folder with page model (.cshtml.cs) files (example demoSydney.cshtml.cs), handlers like OnGet/OnPost, DI to an EF Core DbContext, and [BindProperty] for form binding. It shows TempData‑backed messages stored in an encrypted cookie and cleared after read, handler routing (query vs route tokens), page filters, and everything works end‑to‑end.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:52What is Razor Pages
- 6:44Razor Pages
- 12:07MVC
- 16:30Customers
- 17:49List Customers
- 23:22Create New Customer
- 24:34Create Customer Page
- 26:14Adding Properties
- 27:37Rendering the Page
- 30:51Testing the Page
- 33:46Adding a Property String Message
- 35:45Displaying the Message
- 36:49Testing the Message
- 38:52Deleting a Page
- 49:51Change Page URL
- 52:29Page Filters
related talks
01h 03mIntroducing Razor Components in ASP.NET Core 3.0
01h 01mLessons learned building ASP.NET Core MVC
32mBuilding Secure ASP.NET Core MVC Applications
01h 18mASP.NET MVC in 2024: A Powerful Choice for Modern Web Development?
01h 02mAdapting ASP.NET Core MVC to your needs
48mWhat's new in ASP.NET Core 2.0?
41mModern Full-Stack Web Development with ASP.NET Core & Blazor
01h 03mASP.NET Core 1: What has changed for MVC and Web API developers?
