I have an aspx page (c# using visual studio 2010) in which I have a terms of service. I would like to allow the users to print the terms of service without having to print the rest of the page. (The rest of the page is various other information)
Therefore I would like a way to specify a panel ID and when the “Print TOS” button is pushed it will only print the information which is in the specific panel specified.
Thanks in advance.
I gave points to @Marko and @Chris because I found a solution that was similar to their ideas. I found my answer here:
http://www.eggheadcafe.com/community/aspnet/3/10034702/how-to-print-part-of-web-page.aspx
(4th solution down by Sagar P)
I am answering this way because the javascript and way of working with my worked perfect from this link. The way it works is it pops out a new window and puts the html of the panel into the new open window.