Click here to Skip to main content
16,005,734 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Friends, can anybody help me .
I have created a web page in asp.net c# language and adding a print button in this page , i wanted that as user click that button this form will be print.
i need this coding today please help me
Posted
Comments
Nelek 5-Apr-14 5:33am    
This is not how CP usually works. Most important goal here is to learn and help learning.
You are supposed to try it on your own, and come here when you got stuck with something, with a concrete question about your code, design, etc.
Please have a look to What have you tried?[^] to see a good explanation about what I mean.
Don't forget people here don't get payed. And besides, if we give you a ready-to-go solution, it is not going to help you because you are not going to learn anything from it.

1 solution

Solution:

HTML
<input type="button" onclick="window.print();" value="Print">
<table>
        <thead valign="top">
            <tr>
                <th>Code-Page<br>ID</br></th>
                <th>Name</th>
                <th>ACP</th>
                <th>OEMCP</th>
                <th>Windows<br>NT 3.1</br></th>
                <th>Windows<br>NT 3.51</br></th>
                <th>Windows<br>95</br></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1200</td>
                <td style="background-color: #00f; color: #fff">Unicode (BMP of ISO/IEC-10646)</td>
                <td></td>
                <td></td>
                <td>X</td>
                <td>X</td>
                <td>*</td>
            </tr>
            
        </tbody>
    </table><pre>

 
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