Which file is typically used in ASP.NET Core to specify the default layout for Razor views?

  • _Layout.cshtml
  • web.config
  • Startup.cs
  • appsettings.json
In ASP.NET Core, the default layout for Razor views is typically specified in a file named "_Layout.cshtml." This file contains the common HTML structure, including headers, footers, and navigation menus, that will be applied to multiple views in your application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *