title: Display ASP.NET generated pdf byte[] to web page without saving the file
body: <p>I'm using iTextSharp for generating a pdf. I can save the PDF file from the PDF byte[]. </p>
  
  <pre><code>byte[] outputPDF = cnt.CreateBreakPDF();
  File.WriteAllBytes(pdfOutPutPath, outputPDF);
  </code></pre>
  
  <p>What is the best way to display the output <code>byte[]</code> to a web page? </p>
  
  <p>I want to show the PDF inside a div in my page. Not the PDF as a full response.</p>
  
  <p>I've seen answers for MVC, but I'm using ASP.NET Web Application. </p>
  
  <p>Is there a better way than using HTTP handlers to do so? I don't want to send all the details for creating PDF as query string. </p>