title: Http Response Object in new window
body: <p>I have a button click event set up to retrieve a byte array object from my DB and it is then going to show the file in a new browser window.  Right now I have this much: </p>
  
  <pre><code>Response.ContentType = "image/jpeg";
  Response.AddHeader("content-length", fileBytes.Length.ToString());
  Response.BinaryWrite(fileBytes);
  </code></pre>
  
  <p>where fileByes is my byte array.  This is working perfectly, but I need to force this to open in a new window.  I have tried adding the javascript to the response with response.write but that doesn't seem to work.  </p>