You're new to ASP.NET Core and are confused about where to specify the common design elements (like headers and footers) that appear on every page. Which Razor concept should you explore for this purpose?

  • ViewComponents
  • Razor Layouts
  • Partial Views
  • Tag Helpers
To specify common design elements like headers and footers that appear on every page, you should explore Razor Layouts. Razor Layouts allow you to define a shared layout for your views, enabling you to encapsulate these common elements.
Add your answer
Loading...

Leave a comment

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