Shared Razor directives that are intended to be used across several views in an ASP.NET Core application are typically placed in the _______.cshtml file.

  • _ViewImports
  • _Layout
  • _Partial
  • _ViewStart
Shared Razor directives that are meant to be used across multiple views are typically placed in the _ViewStart.cshtml file. This file is executed before any view is rendered and allows you to set common layout or content directives for all views.
Add your answer
Loading...

Leave a comment

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