$(function () {
$("#loginbtn").click(function () {
var obj = {};
alert("hii");
obj.name = $.trim($("#username1").val());
obj.age = $.trim($("#password1").val());
$.ajax({
type: "POST",
url: "Incomeexpenses.aspx/SendParameters",
data: JSON.stringify(obj),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
alert(r.d);
}
});
return false;
});
});
in cs file i have this method
[WebMethod]
public static void SendParameters(string uname, string password)
{
}
}
it show like error
?
Sreekanth ReddyPosted Oct 16, 2018, 4:28 AM
Suraj KumarPosted Oct 16, 2018, 2:35 AM
Harish BatchuPosted Oct 16, 2018, 2:30 AM
Suraj KumarPosted Oct 16, 2018, 1:35 AM