sankeerth m

sankeerth m

  • NA
  • 484
  • 23.3k

Ajax not hitting controller

Mar 26 2021 11:47 AM
var pagenumber = $('#hdnID').val();
var params = { Bic: disBranchCode, };
$.ajax({
type: "POST",
url: 'Details',
data: JSON.stringify({ Bic: pagenumber }),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
alert(JSON.stringify(r))
 
 
unable to hit contorller while edi button
 
<a id="alviewBranchCode" href="javascript:void(0)" onclick="return GetBranch()" class="btn btn-default" style="color:red;width:70px" >View</a>
 

Answers (5)