apy b
apy b

Reputation: 21

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 without the masterpage defined in the header? would I just define a separate view? or is there a better way? thanks!

Upvotes: 2

Views: 1371

Answers (1)

bzlm
bzlm

Reputation: 9727

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

Upvotes: 4

Related Questions