Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Printing the contents of a div in asp.net using a javascript function doesn't work on IE anyone knows how can i solve it?

user-image
Question added by marwa khalaf , .Net Developer , Sands National Academy
Date Posted: 2013/04/25
Zaid Rabab'a
by Zaid Rabab'a , Software Development Team Leader , Al-Safa Co. Ltd.

write the function in client side , and use JQuery $(#dev1).html ( what ever ) ; and fill the div with any content you wish

Zeinab Magdy Mohamed Osman
by Zeinab Magdy Mohamed Osman , Data Entry & Facebook Admin , Tawfer.org

I'm sorry that's not my field, But I found those links to I hope they help: http://forums.asp.net/t/1261525.aspx/1 http://stackoverflow.com/questions/2255291/print-the-contents-of-a-div http://www.javascriptjedi.com/getElementById/ Regards,

Ashraf Sabry
by Ashraf Sabry , Freelancer developer , N/A

You can write a style sheet for printing using media queries.
And inside this style sheet, hide everything on the page but the div.
Then just call window.print Example style sheet embedding tag: Read here for more details: https://developer.mozilla.org/en-US/docs/CSS/Media_queries

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.