开发者

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
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜