Implementing Razor Pages

This chapter covers Razor Pages, a functionality introduced in ASP.NET Core 2.0, which provides a simplified development model that does not use controllers.

By studying this chapter, we will be able to develop dynamic websites that are driven by data.

We will talk about the following:

  • Assets search order
  • Working with the page model
  • The commonality in Razor views
  • Enforcing security

Technical requirements

To implement the examples introduced in this chapter, you will need the .NET Core 3 SDK and a text editor. Of course, Visual Studio 2019 (any edition) meets all of the requirements, but you can also use Visual Studio Code, for example.

The source code can be retrieved from GitHub here: https://github.com/PacktPublishing/Modern-Web-Development-with-ASP.NET-Core-3-Second-Edition ...

Get Modern Web Development with ASP.NET Core 3 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.