try like this
function GetSearchResult() {
$("#loading").show();
$.support.cors = true;
var searchUrl = URL;
var params = { "ID": Id,
"Name": name
};
$.ajax({
cache: false,
type: "POST",
async: true,
dataType: "json",
contentType: "application/json; charset=utf-8",
url: searchUrl,
data: JSON.stringify(params),
success: function (data) {
},
error: function (xhr) {
alert(xhr.responseText);
}
});
}
Hope this helps