I am new JSON. I have written a code like below to call a method in c#. But its not yet all calling the method. Please show me a solution how to call a method with n without parameters
$.ajax({
type:"POST",
url:"~/PageName.aspx/test",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
alert("s");
},error: function(msg){
alert("error" + msg);
}
})
C#
public void test()
{
}