Jump to ratings and reviews
Rate this book

ASP.NET Core Razor Pages in Action

Rate this book
Razor Pages lets you build, configure, and deploy amazing dynamic ASP.NET websites with ease.

In ASP.NET Core Razor Pages in Action you will

Building, configuring, and publishing a data-driven website
Creating a complete web application step-by-step
Forms for collecting and processing user data
Connecting to databases from a Razor Page
Protecting areas of a Razor Page from unauthorized access with ASP.NET Identity
Using Object Relational Mapping tools to work with data in Razor Pages applications
Generating CRUD pages using scaffolding gestures
Generating and sending email from your web application

ASP.NET Core Razor Pages in Action teaches you to develop dynamic websites using the powerful Razor Pages framework, .NET 6, and ASP.NET. Razor Pages generates HTML on the server, and is the perfect choice for eCommerce sites, intranet services, content management systems, and other apps that require reliability. In this book, you’ll use Razor Pages to build a complete application for booking city breaks, learning to iterate amazing new features chapter-by-chapter. You’ll even learn how to enhance your web applications with the huge ecosystem of C# libraries, and how to locate the perfect tool for your task using centralized repositories.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the technology
Simplify ASP.NET web development with Razor Pages! Razor Pages provides a cohesive page-based organization layer for application components like routes and actions. It’s page-centric approach means you spend less dev time switching between the controller, model, and view files, as compared to a traditional MVC approach.

About the book
ASP.NET Core Razor Pages in Action teaches you how to use Razor Pages to code and scale dynamic ASP.NET Core websites. You’ll learn a new feature in every chapter as you build an interesting vacation-booking application. As your app grows, you’ll be amazed how Razor Pages accelerates essential tasks like form creation, data processing, testing, and deployment.

What's inside

Securing your applications from unauthorized access
Using object-relational mapping tools to work with data
Generating and sending email from a web application
Enhance your web apps with C# libraries

About the reader
For web developers familiar with C# programming.

About the author
Mike Brind is an 11-time recipient of the Microsoft Most Valuable Professional (MVP) award for ASP.NET.

Table of Contents
1 Getting started with Razor Pages
2 Building your first application
3 Working with Razor Pages
4 Matching URLs to Razor Pages with routing
5 Working with Model binding
6 Working with Tag helpers
7 Using dependency injection to manage services
8 Working with data
9 Managing users with authentication
10 Controlling access with authorization
11 Client-side technologies and AJAX
12 Troubleshooting your application
13 Protecting your application against external attacks
14 Configuring and publishing your application

456 pages, Paperback

Published December 27, 2022

4 people are currently reading
13 people want to read

About the author

Mike Brind

3 books

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (62%)
4 stars
2 (25%)
3 stars
1 (12%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 4 of 4 reviews
2 reviews4 followers
October 26, 2023
Let me begin by saying that I enjoyed this book on Razor Pages.

For anyone interested in .Net development, following reading the latest books on .Net and ASP.Net Core, the next pieces are of course getting more in depth with ASP.NET Core Razor Pages and Entity Framework.
Manning has some good books on all of these: .Net in Action, ASP.Net in Action, Building Web APIs with ASP.NET Core, EF in Action and this title.

The book released in Nov 2022 builds a picture on Razor pages by starting a new project, based on the .Net 6 version. .Net version wise is a good starting point. It was released in November 2021, as its marked LTS (long term support) will have support for 3 years up to November 2024.

The book project and its concepts are presented with plenty of useful diagrams and code examples and covers the bases of applying razor concept.
Beyond that, it presents many foundational knowledge on HTTP basics and general concepts like DRY and SOLID.

Includes an introduction on Entity Framework (EF) for data interactions. So anyone not yet familiar, can hit the ground running where Razor and Data are concerned. Anyone starting with data, and Entity Framework, I recommend getting a good introduction to SQL standard and a good ground in EF itself and how EF queries get translated into SQL as otherwise badly designed a EF one-liner can drag your db performance to the floor.

Its interesting the author decided to separate Authentication from Authorisation into separate chapters, where many books bundle them together. And its for the better, making it stand out that recognising a user is not the same as controlling/restricting access to a system or portion of a system.

It then quickly runs towards the end of the book with AJAX technologies where partial page updates using jQuey plain JS with data in JSON format. Security and threats included with minimal information though it does give an overview of browser security with HTTPS, SSL and TLS with time to mention a warning to Injection and Cross-side scripting XSS vulnerabilities. And finally publishing the project.
Profile Image for Luigi Zambetti.
2 reviews
May 26, 2023
What I really liked about this book is its extreme synthesis, however associated with a considerable insight into the subject.
In a relatively small and handy book, there is everything you need to know about the Razor Pages.
And the author starts from the basics: all you need is a fair knowledge of C# and web development in general (HTML, CSS and JavaScript).

Another point in favor is the layout of the code: perfectly indented and complete with bold side comments.
Too bad the color is missing, it would have been useful (but present in the PDF version of the book).

There are no exercises or quiz questions at the end of the chapters, just a concise summary (but I personally prefer it that way).

Flexible binding, so you can read it without difficulty.

As far as I know, it's currently the best book on Razor Pages out there.
Profile Image for Eddie.
758 reviews8 followers
October 23, 2023
I would give it 4.5 stars. If you're looking to get a decent starting understanding of Razor Pages this is a good starting point. It's not too complicated, but it does explain important concepts that you may not be familiar with. Helped me understand what I read on other sites about Razor Pages so that I can go on to more advanced topics comfortably.
Profile Image for Laud.
3 reviews2 followers
January 9, 2023
A well structured guide into understanding thoroughly and effectively leveraging ASP.NET Core Razor pages for a broad range of web applications.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.