In user view in FindView method, how can I use Layout ? masterName always empty.
FindView
Layout
masterName
ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache) { // How do I get WebViewPage.Layout to know what layout is used? }
If you do not set your master at the controller level using return View(string viewName, string masterName) , masterName will always be empty. A wizard is usually defined during compilation of the view itself.
return View(string viewName, string masterName)