Removing master layout from view (MVC2)

后端 未结 2 1638
慢半拍i
慢半拍i 2021-01-24 02:14

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

2条回答
  •  野性不改
    2021-01-24 02:35

    Not tested, but what if you create and empty master layout, and say 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.

提交回复
热议问题