PageMethods, jQuery and JSON
问题 I am trying to call a PageMethod using jQuery like this: [WebMethod] public stataic string WebMethod(PostData data) { //DO WORK return "a"; } PostData class is as follows: public class PostData { public string Guid{get;set;} public string Action{get;set;} public string Id{get;set;} } I'm calling method from jQuery like this: $.ajax({ type="POST", url: 'url', data: JSON.stringify(b), contentType: "application/json;charset=utf-8", dataType: "json", success: function (msg) { var t = $(c).html();