Jquery AJAX Post!!!
var jsonText = JSON.stringify({ username: credentials.username, role:credentials.role });
$.ajax({
type: "POST",
url: 'Service.aspx/GetDropdownUsers',
data: jsonText,
contentType: "application/json; charset=utf-8",
dataType: "json"
})
.success(function (data) {
// The data was successfully returned
console.log("success...");
var datax = angular.fromJson(data.d);
callback(datax);
})
.error(function () {
console.log("error...");
});