The RenderSection() call includes an additional parameter—"required"—indicating whether or not content pages following this layout are required to explicitly implement a given section. This value is true by default (indicating that content pages are required to implement a given section); however, if this value is false, content pages can feel free to ignore that the section is defined, providing content for the optional section only when prudent.
sample : @RenderSection("sectionName", required: false)
sample : @RenderSection("sectionName", required: false)
No comments:
Post a Comment