开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜