In layout Pages,renders the content of named Section.
RenderSection("footer",false) ---If set to false,then view need not have a section
The above code expects the Section “footer” to be used and its mandatory,so typically view must have a section named footer.
{ Layout = ~/Views/Shared/_Layout.cshtml; } section footer { This is sample footer }
Working principle of RenderSection :