I\'m trying to pass JSON from jQuery to a .ASHX file. Example of the jQuery below:
$.ajax({ type: \"POST\", url: \"/test.ashx\", data: \"{\
if using $.ajax and using .ashx to get querystring ,dont set datatype
$.ajax({ type: "POST", url: "/test.ashx", data: {'file':'dave', 'type':'ward'}, **//contentType: "application/json; charset=utf-8", //dataType: "json"** });
i get it work!