8
Trong chế độ xem tùy chỉnh theo phương pháp FindView
, làm cách nào tôi có thể thấy số Layout
được sử dụng? masterName
luôn trống..NET MVC Bố cục chế độ xem tùy chỉnh
ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache) {
// How do I get WebViewPage.Layout to know what layout is used?
}
bạn có tìm thấy giải pháp cho điều này không? –
'Phương thức FindView' của lớp nào? – jrummell
@jrummell là một phần của [IViewEngine] (http://msdn.microsoft.com/en-us/library/system.web.mvc.iviewengine.aspx). –