I am working on asp.net MVC3 application and I have created a layout.cshtml which is used like master page. I want to create another layout template and use it for print ( media=print) Can I switch the layout when print preview is clicked ?
I am working on asp.net MVC3 application and I have created a layout.cshtml which
Share
You should use two stylesheets, one for printing (CSS media types):
This stylesheet would selectively apply
display:none;to the elements you don’t want displayed in the printed version