Download PDF file AJAX POST - ASP.NET
<p>I am using AJAX Post (please see below code snippet). </p>

<p>The <code>generatePD</code> method generates a PDF file. But I am not sure how to download that pdf file to the browser. I tried to use response but I couldn't get this worked.</p>

<pre><code>$.ajax({

    type: "POST",
    url: "../StoreOperations/Service.asmx/generatePDF",
    contentType: 'application/json',
    dataType: "json",
    data: JSON.stringify(params),
    success: function (data) {

    },
    error: function (error) {

    }
});
</code></pre>