I have the following setup
- LayoutBasic.cshtml defining my head and body section + a @RenderSection("Extra", required: false);
- LayoutTabPage.cshtml using LayoutBasic.cshtml defining the layout of a tab page
- SpecificTabPageIndex.cshtml using LayoutTabPage.cshtml defining a @section Extra{} with some link and style tags
- Sometimes I have a partial that contains the @section Extra{} rendered from within the SpecificTabPageIndex.cshtml
The problem is that it that the "Extra" section is not rendered. Sometimes the code runs fine but the section is not rendered and sometimes I get the "The following sections have been defined but have not been rendered for the layout page" error.
Can anyone give me a hint as to what I'm doing wrong? Is RenderSection unusable when nesting layouts in as many levels as I do?
TIA
./kroogar