I have a layout _Layout.cshtml and in the end of it I have:
...
...
@RenderSection("mySection", required: false)
</body>
</html>
At the end of my view I have:
@section mySection {
...
...
}
My view is using partial views. When I tried to add content to the mySection section - nothing happend. In my partial view:
@section mySection {
....
....
}
The section content from the partial view didn't render. Are sections allowed in PartialViews? if not, why??