如何在asp.net 2.0中打印表格? [英] how to print the form in asp.net 2.0?

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

问题描述

如何在asp.net 2.0中打印表格?

例如铁路预订表格...

如果我单击打印"按钮,将打印整个表格..

how to print the form in asp.net 2.0?

for example the railway reservation form...

If i click the button Print the whole form is to be printed..

推荐答案

这可能对您有所帮助.
http://www.dotnetcurry.com/ShowArticle.aspx?ID=92 [ ^ ]
This might help you.
http://www.dotnetcurry.com/ShowArticle.aspx?ID=92[^]


尝试一下

在ASP.NET中打印 [
Try this

Printing in ASP.NET[^]


<script type="text/javascript" language="javascript">
        function Callform(strid)
        {
        var textbox1_id =document.getElementById('textbox1');
        var textbox1_txt =textbox1_id.value;
       
        var content = document.getElementById("div1").innerHTML;
        alert(content);
        }
        </script>





<form id="form1" runat="server">
   <div id="div1">

       <input id="Button1"  onclick="javascript:Callform('form1')" runat="server" type="button" />

   </div>
   </form>


这篇关于如何在asp.net 2.0中打印表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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