Hey guys,
I have a button that when clicked on it will open a pdf file in the current window. Can someone help me modify my code to open in a new window? Here's what I have so far that works when the button is clicked:
if (pdf != null)
{
Response.Expires = 0;
Response.Buffer = true;
Response.Clear();
Response.ClearHeaders();
Response.ClearContent();
Response.ContentType = "application/pdf";
//stream it back in the HTTP response
Response.BinaryWrite(pdf);
Response.Flush();
try { Response.End(); }
catch { }
}
...
Go to the complete details ...