从视图中删除总纲(MVC2) [英] Removing master layout from view (MVC2)

查看:164
本文介绍了从视图中删除总纲(MVC2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我需要从我的视图中删除总纲发展蓝图,我该怎么办它MVC2?
我想在我看来,把code,它在文档显示 http://sparkviewengine.com/documentation/主布局:在,但它仍然带给我Application.spark布局: - /

if i need remove master layout from my view, how can i do it in MVC2? i tried put code in my view that was shown in documentation http://sparkviewengine.com/documentation/master-layouts: , but it still bring my Application.spark layout :-/

任何想法,为什么?

推荐答案

没有测试,但是如果你创建和空的总体布局,并说<使用主=EmptyMaster/> 在视图的顶部?或者,你可以调用来自控制器空的主人; 返回视图(查看,EmptyMaster);

Not tested, but what if you create and empty master layout, and say <use master="EmptyMaster" /> in the top of your view? Or you could call on the empty master from the controller; return View("View", "EmptyMaster");

不知道它会工作,但它是值得一试。

Don't know if it'll work, but it's worth a shot.

这篇关于从视图中删除总纲(MVC2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆