title: diaplay pdf in an aspx page using an iframe
body: <p>Right now, I am displaying my pdf using iframe. this opens the pdf reader present in the system to display the pdf.
  I want to display the pdf in an aspx page instead. But using iframe. It should open a pop-up, but the pop-up should be a aspx page with a close button</p>
  
  <p>I have tried using this code, But this displays the code in the same ie page. I want the aspx page to be a popup with just a close button</p>
  
  <pre><code>protected void Button1_Click(object sender, EventArgs e)
  {
      string FilePath = Server.MapPath("sample.pdf");
      WebClient User = new WebClient();
      Byte[] FileBuffer = User.DownloadData(FilePath);
      if (FileBuffer != null)
      {
          Response.ContentType = "application/pdf";
          Response.AddHeader("content-length", FileBuffer.Length.ToString());
          Response.BinaryWrite(FileBuffer);
      }
  }
  </code></pre>