开发者

asp.net mvc opening a view in new window without master page?

开发者 https://www.devze.com 2023-01-11 06:41 出处:网络
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?

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
0

精彩评论

暂无评论...
验证码 换一张
取 消