I have a masterpage (which we will call ‘default’). This contains a second page (web user control) – ‘second’. And finally a third ‘print’ page. The ‘print’ page is also a web user control, however, it merely has a placeholder that contains the ‘second’ page.
Is there a way I can add a control to the ‘second’ page – such as a literal, and only have it visible on the ‘print’ page?
It sounds like CSS will actually be the best approach to your issue. Use the media attribute to specify what is and what is not visible. Here’s an example
which contains…
and then also have:
which contains…
So, your page would include both stylesheets, and your control would use the
yourClassCSS class. The end result would be that whatever elements useyourClasswould only be visible when printing.