sona more

sona more

  • 1.8k
  • 120
  • 8k

error during serialization using json javascriprtserializer

Jul 4 2018 12:12 AM
  1. //controller
  2. public JsonResult GetAllClient()  
  3.       {          
  4.           var product = GetClient().ToList();  
  5.           return Json(new { data = product }, JsonRequestBehavior.AllowGet);  
  6.       }  
  1. //WebConfig  
  2.   
  3. <system.web.extensions>  
  4.     <scripting>  
  5.       <webServices>  
  6.         <jsonSerialization maxJsonLength="102400"/>  
  7.       </webServices>  
  8.     </scripting>  
  9.   </system.web.extensions>  

Answers (5)