Razor – Hiding a Section in a Layout
- by João Angelo
Layouts in Razor allow you to define placeholders named sections where content pages may insert custom content much like the ContentPlaceHolder available in ASPX master pages.
When you define a section in a Razor layout it’s possible to specify if the section must be defined in every content page using the layout or if its definition is optional…