I am calling a web method in aspx page from my js file using AJAX. I have set the method to be [WebMethod] and the page inherits from System.Web.Ui.Page class. Still it does not
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string CustomOrderService(string id)
{
string result;
// code logic which sets the result value
result="some value";
return result;
}