asp.net mvc opening a view in new window without master page?
I am wondering if it is possible to open a view in a new window but wit开发者_Go百科hout the masterpage defined in the header? would I just define a separate view? or is there a better way? thanks!
Just create an empty Master page, and pass the name of that Master page when returning a ViewResult
:
return View("MyView", "Empty"); // Use the "Empty" Master page to render the view
精彩评论