title: ASP.NET & PDF Files
body: <p>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:</p>
  
  <pre><code>&lt;iframe runat="server" id="testpdf" src="http://localhost:1114/pdfs/3211LD.pdf"&gt;
  &lt;/iframe&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>So why won't it display in an iframe? Is there something wrong with my code?</p>
  
  <p>Thanks,
  Jason</p>