My ASP.NET Core web project has the usual shared layout file.
How do I exclude the use of layout for a specific page?
@{
Layout = null;
}
Stick that at the top of your view to not use any layout. Bear in mind you'll need to specify a full HTML document body in that view.
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