Printing Hide menus,ASP.Net

Posted by Raja_89 under ASP.NET on 6/11/2013 | Points: 10 | Views : 809 | Status : [Member] | Replies : 1
Hai Techies
I am printing a document through ASP.NET ,javascript

While displaying it print masterpage contents

How can i hide this


Posted by: Allemahesh on: 6/13/2013 [Member] [MVP] Silver | Points: 25

You can use the below process to achieve this.

1. Create a style sheet and include the below css code.
display: none;

2. Add this style sheet reference to master page.
<link href="StyleSheet.css" rel="stylesheet" media="print" type="text/css" />

Note : Make sure media="print" is present in you link.

3. Then add the class="hide" to the tag which you do not want to print.

Hope this will help you.

Raja_89, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response