.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh
Melody Anderson
Eminent IT

Home >> Code Snippets >> Javascript >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Print in ASP.Net

Posted By:Rahul       Posted Date: December 04, 2008    Points: 10    Category: Javascript    URL: http://www.dotnetspark.com  

Print in ASP.Net is possible in using Javascript. As we know .NET does not provide any PrintDialog in asp.net so we have to use Javascript to call print dialog in asp.net.

You can use Javascript window.Print to show Pring Dialog in ASP.Net form to the User like this.

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

Or like this

<script language="javascript">

Happy Coding!!!!


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend