title: Opening a new Window Codebehind ASP.net
body: <p>I have the following code:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
          byte[] buffer = null;
          buffer = File.ReadAllBytes("C:\\myfile.pdf");
          HttpContext.Current.Response.ContentType = "application/pdf";
          HttpContext.Current.Response.OutputStream.Write(buffer, 0, buffer.Length);
          HttpContext.Current.Response.End();
  }
  </code></pre>
  
  <p>I want to open a second window for the pfd file beside the current page, where the pageload comes from.</p>