Jquery Ajax call to url not working in ASP.NET
<p>I use ajax call in my aspx page and also use URL Rewrite. Ajax call hit the webMethod without URL Rewrite rule but after applying Rewrite Rule it stop working.</p>

<p>My aspx page ajax call is:</p>

<pre><code>$.ajax({
        type: "POST",
        url: "../cc/page.aspx/SendNewsletter",
        data: d,
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (response) {
            alert('hi');
            if (response.d == "1") {
                alert("Newsletter has been sent successfully.");

            }
            else {
                alert("Something went wrong.Please try again later.");
            }
        },
        failure: function (response) {
            alert(response.d);
        }
    }).always(function () {

    });
</code></pre>

<p>And my Webmethod is:</p>

<pre><code>[WebMethod]
public static string SendNewsletter(string to, string newsletter, string newslettername)
{
}
</code></pre>

<p>My Rewrite Rule is:</p>

<pre><code>&lt;rule name="Rewrite normal CC request to aspx"&gt;
                &lt;match url="^cc/(.*)$" /&gt;
                &lt;action type="Rewrite" url="cc/{R:1}.aspx" /&gt;
            &lt;/rule&gt;
</code></pre>