This is my code:
$.ajax({
type: "POST",
url: "Default.aspx",
data: "category=2&city=Boston",
contentType: "application/json; charset=utf-8",
dataType: "json",
processData :false,
error: function (json) {
alert(json.statusText);
},
success: function (json) {
alert(json.statusText);
}
});
How can I get my parameters (category=2&city=Boston
) to the server?
Request parameters is always null
.