如何使用linkbutton inasp.net调用浏览器打印设置请一些身体帮助 [英] How to call browser print setup using linkbutton inasp.net please some body help
本文介绍了如何使用linkbutton inasp.net调用浏览器打印设置请一些身体帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在链接按钮上调用打印设置点击asp.net plz任何人帮助我我是asp.net中的新人
解决方案
我相信你只需在javascript中调用窗口中的print方法,然后用户就会选择打印页面的方式。
< a href = javascript:void(0); onclick = window .print(); > 打印我< / a >
< ; asp:linkbutton text = 打印我 onclientclick = window.print(); xmlns:asp = #unknown />
i am trying to call print setup on link button click in asp.net plz any one help me i am new in asp.net
解决方案
I believe you simply call the print method in window from javascript, then the user chooses how they want to print the page.
<a href="javascript:void(0);" onclick="window.print();">Print Me</a>
<asp:linkbutton text="Print Me" onclientclick="window.print();" xmlns:asp="#unknown" />
这篇关于如何使用linkbutton inasp.net调用浏览器打印设置请一些身体帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文