Assuming you are using a razor viewer mechanism (you mentioned the layout, not the main page)
@{ Layout = null; }
Well, you should actually use a razor viewer mechanism, but the idea is simple anyway. Do not specify (delete) the link to the main page file in your aspx view and delete all ContentPlaceHolders, write all the content directly on the page. Or otherwise, if you do not want to remove them for some reason. Create a PrintMaster.master master page that contains only ContentPlaceHolders.
archil May 20 '11 at 6:31 am 2011-05-20 06:31
source share