Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I converted my website from an ASP.Net website to an ASP.Net Core website and now I realize that none of the pages other than the home page is using the layout.

The ASP.Net Core website is at Sam's Simple Samples - sswa (it currently loads slowly, sorry). The GitHub repository is at SimpleSamples/sswa.

I am using areas for sub-sections of my site.

What I have tried:

As best as I can understand what The Razor _Layout.cshtml file | Learn Razor Pages says, each page in each area should automatically find the:
Pages/Shared/_Layout.cshtml

file.
Posted
Updated 30-May-22 18:48pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900