Full Stack Web Development, Fast Focus Sessions

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

12/04/2018

2:00pm - 2:20pm

Level: Introductory

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're similar to Razor Views in MVC, they have interesting differences. Essentially, they're 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. I'll look at scenarios where Razor pages are a good choice and discuss when it's 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:

  • How Razor Pages fit into the ASP.NET MVC Core framework
  • How handlers work in Razor code
  • About controllerless MVC