@* Omitted code.. *@ @RenderBody() @RenderSection("Sidebar", required: false)
Is there any way to know in the Omitted code
part if the RenderSection Sidebar
exists or not?
@if (IsSectionDefined("Sidebar")) { @RenderSection("Sidebar") } else { <div>Some default content</div> }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With