Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hi friends
how to open print dialog box on button click event in asp.net
thanks
Posted
Comments
Marc Gabrie 15-Jun-13 14:32pm    
What do you really want to do? Print the current page? A report? Elaborate a bit

Check out following thread:
How to Print in ASP.NET[^]
 
Share this answer
 
Below is sample code
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Button ID="Button1" runat="server" Text="Print" OnClientClick="window.print()" />
    
    </div>
    </form>
</body>
</html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900