title: Open pdf inside iframe
body: <p>I want to open PDF file in inframe inside asp.net page.
  I tried this</p>
  
  <pre><code>&lt;iframe src="http://samplepdf.com/sample.pdf" width="400px" height="300px"  /&gt;
  </code></pre>
  
  <p>This works fine.</p>
  
  <p>However, when I change Path to PDF file as following</p>
  
  <pre><code>&lt;iframe id ="myframe" src=@"C:\Book.pdf" width="400px" height="300px"  runat="server"/&gt;
  </code></pre>
  
  <p>Nothing is displayed inside frame.</p>
  
  <p>I tried change path in CodeBehind as following</p>
  
  <pre><code>myframe.Attributes.Add("src", @"C:\Book.pdf");
  </code></pre>
  
  <p>But pdf file is not opened inside iframe.
  What is a problem?
  Does some know solution?</p>