Full Stack Web Development, Fast Focus

W09 Fast Focus: Getting Started with ASP.NET Core 2.0 Razor Pages


1:30pm - 1:50pm

Level: Introductory to Intermediate

Walt Ritscher

Senior Staff Instructor

LinkedIn Learning / Lynda

Razor Pages are a new feature of ASP.NET Core 2.0 that brings a simple page based development model to .NET Core. While they are similar to Razor Views in MVC, they have interesting differences. Essentially, they are the preferred way to generate server-side HTML content in the Microsoft MVC world.

This session explores how the Pages framework operates and how it fits into the standard ASP.NET Core MVC infrastructure. We'll look at scenarios where Razor pages are a good choice and discuss when it is best stick with MVC. You'll see how all your favorite concepts (like Model Binding, Validation, Filters, Routing and Action Results) work in this new system. And you'll see how Razor pages simplify many common tasks when building basic web pages.

You will learn:

  • Understand how Razor Pages fit into the ASP.NET MVC Core framework
  • How to build a data and model driven site with Razor Pages
  • How handlers work in Razor code