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.
Loading...
Related Quiz
- Imagine you're developing an ASP.NET Core application on a machine without any internet access. Which tool, among the following, allows you to install NuGet packages from a local feed or folder?
- Your manager wants to prevent users from using their username as their password. Which feature in ASP.NET Core Identity helps with this requirement?
- The _________ file was a unique feature in the early versions of ASP.NET Core but was later replaced in .NET Core 2.0 and beyond.
- When securing your ASP.NET Core Web APIs, which authentication approach uses a compact, URL-safe means of representing claims to be transferred between two parties?
- When using the [Authorize] attribute with policies, the specified policy name must be previously registered in the _________.