Print content between a div
I am using a master page and other content page i have several div on the content page which show according to the condition. i have to print one main div not other content like masterpage or some data plz tell me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Jun 2, 2010, 5:47 AM EDT
vipin saini87 reputationPosted Jun 2, 2010, 9:34 PM EDT
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Jun 3, 2010, 2:45 AM EDT
<input type="button" value="Print" onclick="window.open('PrintPage.aspx')" />
It will redirect you on PrintPage.aspx page which will be printer friendly.Otherwise you have to create separate CSS for view and printer too.
I hope it will help you, accept answer if yes.
Good Luck
vipin saini87 reputationPosted Jun 3, 2010, 3:46 AM EDT