单击图像按钮时如何在单独的窗口中显示pdf文件 [英] how to display pdf file in separate window when click on image button
问题描述
我对我的申请有要求,
我有一个gridview,当我单击图像按钮pdf文件时,我会在列的每个单元格中显示图像按钮.应该在单独的窗口中显示.
请给我建议
感谢
看看这篇文章,在新窗口中打开pdf:
http://forums.asp.net/t/1703670.aspx/1 [ ^ ]
在此链接中,通过gridView打开pdf:
http://forums.asp.net/t/1451369.aspx/1 [ ^ ]
希望对您有帮助,
干杯
HI,
在ur btnprint上打开新窗口
OnClientClick="window.open(''showPdf.aspx'','''',''menubar=no,resizable=yes,scrollbars=yes'');"
并在showpdf.aspx页面加载中编写ur代码(写在打印按钮上)
如果需要,您可以在showpdf页面中传递参数...
http://forums.asp.net/t/1449845.aspx [ < asp:ImageButton id =" runat 服务器" onClientClick window.open('pdftoshow.pdf','target = _blank');" / >
>
hi,
i have a requirement in my application,
i have a gridview and i displayed image button in every cell in a column when i clicked on the image button pdf file should display in the separate window.
plz give me suggestion
thanks
Hi,
Take a look at this post to open a pdf in a new window:
http://forums.asp.net/t/1703670.aspx/1[^]
In this link, pdf is opened through a gridView:
http://forums.asp.net/t/1451369.aspx/1[^]
I hope it helps,
Cheers
HI,
open new window on ur btnprint
OnClientClick="window.open(''showPdf.aspx'','''',''menubar=no,resizable=yes,scrollbars=yes'');"
and in showpdf.aspx page load write ur code (which is written on print button)
u can pass paramater in showpdf page in case it required...
http://forums.asp.net/t/1449845.aspx[^]
<asp:ImageButton id="imgClick" runat="server" onClientClick="window.open('pdftoshow.pdf','target=_blank');" />
这篇关于单击图像按钮时如何在单独的窗口中显示pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!