I’m trying to get a pdf file to display a pdf document in my aspx page with an iframe. I’m using the following code:
<iframe runat="server" id="testpdf" src="http://localhost:1114/pdfs/3211LD.pdf">
</iframe>
When I run the project, I just get an empty frame. However, when I paste the src (http://localhost:1114/pdfs/3211LD.pdf) into the address bar of a browser, it asks me to run/save the file. So I know my virtual directory is set up right.
So why won’t it display in an iframe? Is there something wrong with my code?
Thanks,
Jason
Youd be better of with an aspx page binary writing the pdf…