tarun janveja

tarun janveja

  • NA
  • 242
  • 38.4k

error while sending post request in angular

Sep 8 2017 11:58 AM
hi,
 
i am getting 500 internal server error on using below angular script in dot net pleae help
 
 
$scope.Delete = function (SID) {
if (confirm("Are you sure want to delete?")) {
var httpreq = {
method: 'POST',
url: 'default.aspx/Delete',
headers: {
'Content-Type': 'application/json; charset=utf-8',
'dataType': 'json'
},
data: { StudentID: SID }
}

Answers (1)