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.
Loading...
Related Quiz
- What is the primary purpose of the _ViewImports.cshtml file in ASP.NET Core Razor Views?
- The [______] attribute in ASP.NET Core is used to specify the route template for an action method.
- How does the "Controller" in the MVC design pattern typically receive user input in ASP.NET Core?
- What is the primary purpose of a Web API in ASP.NET Core?
- You're tasked with developing a system where the user's account gets temporarily locked after 5 consecutive failed login attempts. Which ASP.NET Core Identity feature would you utilize?