2011-08-29 51 views

回答

1

使用此:

@{ 
    "~/Shared/AnotherLayout.cshtml"; 
} 
+0

這根本不會使用任何佈局頁面。 –

+0

對不起,@Ofer Zelig更正了這個:-) – 2011-08-29 08:36:18

2

當然,只要設置你的這個意見調查裏面:

@{ 
    Layout = "~/Path/To/Your/Layout.cshtml"; 
} 

隨着~/Path/To/Your/Layout.cshtml作爲您的自定義佈局視圖。

+0

非常感謝! – Eric

相關問題