~/talk

Introduction to ASP.NET Core Razor Pages

Talkat NDC Sydney 2017 · 2017-08-14..08-18· [dotnet, web-platform]
slides:none on file

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

  1. 0:00Intro
  2. 0:52What is Razor Pages
  3. 6:44Razor Pages
  4. 12:07MVC
  5. 16:30Customers
  6. 17:49List Customers
  7. 23:22Create New Customer
  8. 24:34Create Customer Page
  9. 26:14Adding Properties
  10. 27:37Rendering the Page
  11. 30:51Testing the Page
  12. 33:46Adding a Property String Message
  13. 35:45Displaying the Message
  14. 36:49Testing the Message
  15. 38:52Deleting a Page
  16. 49:51Change Page URL
  17. 52:29Page Filters
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.