如何使用C#在ASP.NET中获取PDF查看器控件 [英] How to get PDF viewer control in asp.net using c#
本文介绍了如何使用C#在ASP.NET中获取PDF查看器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尊敬的先生
当我使用C#单击asp.net中的链接按钮时,我想在网页中显示pdffile.
Dear sir
I want to show the pdffiles in a webpage when i click the link button in asp.net using C# how to do that.
推荐答案
只要有链接href指向文件,单击该文件将打开PDF.或将目标设置为在新窗口中打开.您想要什么特别的东西吗?
Just have the link''s href point to the file, it will open the PDF when clicked. Or set the target open in a new window. Is there something special you want?
sujithmtla
使用
Use
<iframe src="sample.pdf"></iframe>
它将在网页中显示pdf
或使用< embed src ="sample.pdf">它将在网页中显示pdf文档
it will display pdf in web page
or use <embed src="sample.pdf"> it will display pdf document in web page
这篇关于如何使用C#在ASP.NET中获取PDF查看器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文