How to pass the parameters of the service endpoint? (in this case the page will be displayed)
My .asmx service method is as follows:
[WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public List<Object> GetData(int pageSize) { }
When I call this via jQuery, for example:
$.ajax({ type: "POST", url: "test.asmx/test123", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { }, error: function(msg) { } });
source share