post a link from jquery to call a ASHX asp.net
<p>I have this function:</p>

<pre><code>function exportdata(ID) {

   $.ajax({
          type: "POST",
          url: "export.ashx?ID=" + ID,
          data: "{}",
          /*contentType: "application/json; charset=utf-8",*/
          dataType: "json"
        }); 
}
</code></pre>

<p>It works fine but when I open the Developer Tools of Chrome in the Console tab, I see some errors:</p>

<pre><code>POST http://localhost:1111/export.ashx?ID=1 undefined (undefined)
POST http://localhost:1111/abc.aspx undefined (undefined)
</code></pre>

<p>How can I solve this problem?</p>

<p>thanks in dvance.</p>
