liveBook · Manning

Area

As explained in ASP.NET Core in Action, 3e

An area is an ASP.NET Core organizational feature that groups Razor Pages into a separate hierarchy.

An area groups Razor Pages into a separate hierarchy. Each area has its own Pages folder, alongside the application's main Pages folder. section 23.3.2

The default ASP.NET Core Identity UI uses an Identity area. This keeps account-related pages separate and lets an application replace a default page by creating a matching file under Areas/Identity/Pages. section 23.3.2

Customizing Identity layout

Place a _ViewStart.cshtml file in Areas/Identity/Pages and set its layout to /Pages/Shared/_Layout.cshtml. Identity pages then use the application's default layout. section 23.3.2

How ASP.NET Core in Action, 3e covers it

How deep it goes
Defines the folder structure and page-override mechanism but does not detail broader area routing or configuration.
Examples
Uses the Areas/Identity/Pages folder and a _ViewStart.cshtml layout override as concrete examples.
What you can do after
Apply it by organizing Razor Pages and overriding Identity UI pages with matching files.
How it connects
Connects Razor Pages with Identity UI, layouts, and page customization.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.