Your team lead mentions the use of a "_Layout.cshtml" file in your ASP.NET Core project. What is the primary role of this file?

  • Defining the webpage's structure and common elements
  • Storing application configuration settings
  • Handling user authentication
  • Rendering JavaScript code
The primary role of "_Layout.cshtml" in ASP.NET Core is to define the webpage's structure and common elements, such as the header, footer, and navigation menu. It allows for consistent layout across multiple pages in your application.
Add your answer
Loading...

Leave a comment

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