asp.net - print div content from user control without opening a new window -
I have a & lt; Div & gt;
is a user control with a button and a button I & lt; Div & gt; I want to print the content of
when the button is clicked. Only the content of div
and nothing, no matter where control is used. Without opening a new window I can not find any solutions working with every browser!
Thank you!
You may be able to generate a CSS file which is & lt; Div & gt;
can not include everything except:
& lt; Link rel = "stylesheet" type = "text / css" media = "print" href = "print.css" />
And do something like this in print.css:
* {display: none; } #specialdiv {display: block; }
Comments
Post a Comment