Pages

Thursday 4 December 2014

Json size problem in mvc4

Json Size limitation : While using json in mvc4 there is a problem when you transfer data using Ajax with JsonResult. So here is a solution for this. you have to just set the "MaxJsonLength" property to maxvalue.

var jsonResult = Json(result, JsonRequestBehavior.AllowGet); jsonResult.MaxJsonLength = int.MaxValue; return jsonResult;

No comments:

Post a Comment