Which Razor directive is typically used at the beginning of a view file to specify its layout page?

  • @layout
  • @page
  • @model
  • @section
The @layout Razor directive is used at the beginning of a view file to specify its layout page in ASP.NET Core MVC. It allows you to define the layout that should be applied to the current view, providing a consistent structure for your web pages.
Add your answer
Loading...

Leave a comment

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