I've created a View that I don't want to inherit from the _Layout.cshtml, seems pretty intuitive开发者_运维百科 but I just can't seem to figure out how to avoid using it?
Can I somehow put conditional logic into the _Layout.cshtml or is there another way?
Any help would be appreciated!
In the view
@model YourModelClass
@{
Layout = null;
}
精彩评论