ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل marwa khalaf , .Net Developer , Sands National Academy
تاريخ النشر: 2013/04/25
Zaid Rabab'a
من قبل 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
من قبل 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
من قبل 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

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟