Tag Archives: Newtonsoft Datatable

NewtonSoft Datatable to JSON String

function getCategoryById() { $.ajax({ type: “POST”, contentType: “application/json; charset=utf-8”, url: “WebServices/DataWebService.asmx/GetCategoryById”, data: “{‘catId’:” + $(“#txtCategoryId”).val() + “}”, dataType: “json”, context: document.body, success: function (data) { try { if (data.d != ‘[]’) { var parsedData = $.parseJSON(data.d); $.each(parsedData[0], function () { … Continue reading

Posted in Uncategorized | Tagged | Leave a comment