I have a handler (ashx) and I would like to send a file to browser to the new tab.
I know that I can use the JavaScript (when I use the JS, the browser shows the message about blocking pop-up - I would like to avoid this message), but I would like to do this by Response from my handler. Is there any way?
I tried this, but this is open the PDF in the same window
  context.Response.Clear();
  context.Response.ClearHeaders();
  context.Response.ContentType = "application/pdf";
  context.Response.BinaryWrite(buffer);
I am calling the handler from Ajax:
            $.ajax({
                type: "POST",
                contentType: "application/json; charset=utf-8",
                url: "Default.aspx/AcceptFormData",
                data: "{'funcParam': " + JSON.stringify(data) + "}",
                dataType: "json",
                success: function (msg) {
                    window.location = "ashx/GetFile.ashx";
Thanks
 
     
    