The _______ file in ASP.NET Core Razor views specifies the default layout for the views.

  • _ViewStart.cshtml
  • _Layout.cshtml
  • _Default.cshtml
  • _Config.cshtml
The correct file to specify the default layout for Razor views in ASP.NET Core is _ViewStart.cshtml. This file allows you to set the layout that should be applied to multiple views in a folder or the entire application.
Add your answer
Loading...

Leave a comment

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