I am calling post request through ajax.It is working fine for small data but it gives Readystate 4,status 200,parse error for large data JSON.Following is my java script...
$.ajax({
url: '@Url.Action("GetCompanyTicketsGrid")',
dataType: "json",
type: "post",
data: { companyUserID: userId, globalRoleId: roleId },
success: function (res) {
$gridUser.empty();
var len = res.rows.length;
if (len > 0) {
$("#errorDiv").hide();
for (var i = 0; i < len; i++) {
//some work
}
}
else
$("#errorDiv").show();
},
error: function (a, b) {
alert("User Data: " + b);
}
});
When i return JSON with more than 5000 records then only i m getting that error. Thanks in advance.