在线考试如何打印aspx表单 [英] Online Exam how to print a aspx form

查看:92
本文介绍了在线考试如何打印aspx表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,任何人都可以帮助我。

我用asp.net c#语言创建了一个网页,并在此页面中添加了一个打印按钮,我希望用户点击该按钮这个表单将打印。

i今天需要这个编码请帮帮我

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

推荐答案

解决方案:



Solution:

<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>



这篇关于在线考试如何打印aspx表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆