ajax传值到ashx接收反序列
//jsonData 格式 // [{"PersonID":1,"Name":"Bryon Hetrick","Registered":true}, // {"PersonID":4,"Name":"Nora Osborn","Registered":false}] //ajax传值到ashx var josnData = JSON.stringify(data); var option = { url: 'SetData.ashx', type: 'POST', data: { data: josnData }, dataType: 'html', success: function (result) { alert(result); } }; $.ajax(option); //ashx接收反序列 context.Response.ContentType = "text/plain"; var jsonData = context.Request["data"]; var serializer = new JavaScriptSerializer(); var deserializedResult = serializer.Deserialize<List<M_TantouGroup>>(jsonData);