I have a USER CONTROL with a <div> tag and a button. I want to print the content of the <div> when the button is clicked. Only the content of the div and nothing else no matter where the control is used. This without opening a new window. I cannot find a solution that works with every browser!
Thank you!
You might be able to generate a CSS file that excludes everything except the
<div>, something in the lines of:And the putting something like this in print.css: