Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

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
 
Share this answer
 
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[^]
 
Share this answer
 
v2
ASP.NET
<asp:ImageButton id="imgClick" runat="server" onClientClick="window.open('pdftoshow.pdf','target=_blank');"  />
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900