如何在asp.net后面的代码中打印特定的C#函数 [英] how to print particular C# Function in code behind asp.net
本文介绍了如何在asp.net后面的代码中打印特定的C#函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的先生,
单击按钮控件时,我需要关于在asp.net中打印特定的c#函数.
如何获取,请给我代码
作者:mohan.
Dear Sir,
I need About print the particular c# function in asp.net, when I click Button control
How to get please give me code
By mohan.
推荐答案
您的问题措辞很差,很难解释.但是,我会有一个裂缝.
也许您需要的是javascript函数:
Your question is quite poorly phrased so hard to interpret. However, I''ll have a crack.
Perhaps what you need is the javascript function:
window.print();
附加到页面上的按钮,即可打印该页面.如果需要限制用户可以打印的内容,则可以使用特定的css文件,如下所示:
Attach to a button on a page and you can print that page. If you need to limit what the users can print you can use a specific css file as:
<link rel="Stylesheet" href="Styles/Screen.css" media="screen" />
<link rel="Stylesheet" href="Styles/Print.css" media="print" />
仅打印在Print.css文件中指定的元素.
Only elements specified in the Print.css file will be printed.
这篇关于如何在asp.net后面的代码中打印特定的C#函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文