Home > Interview Questions > Javascript > How to print a page using JavaScript in ASP.NET?

How to print a page using JavaScript in ASP.NET?

by Narain Siddharth   on 08/05/2011   Category: Javascript   |  Level: Beginner   |  Views: 1368    |  Points: 25     |  Silver 


Lot of ways we can print a page using asp.net, the simplest way to print a page using JavaScript code.

<input type="button" value="Print a Page" onclick="window.print();">


The above window.print() JavaScript code will print the entire page.


« How to Identify version of SQL SERVER?
» Extension of a web user control?
Post Question  |  Question Home

Recent Posts

User Responses


No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts