开发者

Is it possible for one view in my MVC 3 application to not use the _Layout.cshtml master page?

开发者 https://www.devze.com 2023-03-08 13:35 出处:网络
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?

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;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消