Need print button in with vs2008

Posted by Pand under ASP.NET AJAX on 6/16/2013 | Points: 10 | Views : 3041 | Status : [Member] | Replies : 1
Hello Experts,

Currently I am working on a web application using with VS2008.

It contain online fallible form with Ajax Collapsible Panel Extenders (with validations).

Now I want a print button on this page.

I tried with window.print() but it is not showing the controls when collapsible Panel is false.

Please help me to solve this problem


Posted by: Allemahesh on: 6/17/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: block;

2. Add this style sheet reference to 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="show" to the tag to collapsible panel.

Hope this will help you.

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

Login to post response