Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Ajax Post Method doesnot working when m Using Asp.Net friendlyUrls rewriting

$
0
0

Hi,

This is my url

http://localhost:47591/WebSite1/admin/clients/BP

$('#btnSubmit').on('click', function () {$.ajax({
        type: "POST",
        contentType: "application/json; charset=utf-8",
        url: "BP.aspx/BPAddress", //WebMethod won't called when m using friendlyUrls Asp.Net
        data: "{'Refid':'" + $('#id').val() + "'}",
        success: function (data) {
            var div = $("#home").empty();$(data.d).each(function (index, item) {
                div.append(data.d);
            });
        },
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            debugger;
        }
    });
});

Thanks


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>