Hiding the buttons When Print Button is clicked........
-
Hi, I am using Pring Button in my webpage...... when I click the print button In my print out it is printing buttons also. My requirement is I don't want to print the buttons on paper. finally I want to hide the buttons when I click the print option. Thanking you Mcmilan.
-
Hi, I am using Pring Button in my webpage...... when I click the print button In my print out it is printing buttons also. My requirement is I don't want to print the buttons on paper. finally I want to hide the buttons when I click the print option. Thanking you Mcmilan.
Use a css style set for the
print
media mode. Something like this: .css file:@media print {
.hideOnPrint { display: none;}
}.aspx file:
<asp:Button id="..." runat="server" CssClass="hideOnPrint" ... />
Here's a couple of links to more information: http://www.w3.org/TR/CSS21/media.html[^] http://www.javascriptkit.com/dhtmltutors/cssmedia.shtml[^]
-
Hi, I am using Pring Button in my webpage...... when I click the print button In my print out it is printing buttons also. My requirement is I don't want to print the buttons on paper. finally I want to hide the buttons when I click the print option. Thanking you Mcmilan.
-
Use a css style set for the
print
media mode. Something like this: .css file:@media print {
.hideOnPrint { display: none;}
}.aspx file:
<asp:Button id="..." runat="server" CssClass="hideOnPrint" ... />
Here's a couple of links to more information: http://www.w3.org/TR/CSS21/media.html[^] http://www.javascriptkit.com/dhtmltutors/cssmedia.shtml[^]