Possible Duplicate:
Rendering views without master page in MVC3
I have one view in my project (a bill) and I would like this view to not be shown in a master view wrapper – rather I just want the HTML within the view to be shown. What is the correct way to make a view ignore loading a master layout?
You could put the following at the top of your view:
Or from within the controller action that is supposed to serve this view return a
PartialViewinstead of aView:Or even return a view and specify a null Layout: