JSON, ASP.NET MVC - MaxJsonLength exception

前端 未结 4 1965
时光取名叫无心
时光取名叫无心 2021-01-18 05:25

I am just trying to shift some comma separated numbers to the frontend:

[AcceptVerbs(HttpVerbs.Get)]
public JsonResult GetSquares()
{
 var result = new JsonR         


        
4条回答
  •  甜味超标
    2021-01-18 06:03

    This won't work?

     
       
           
               
                   
               
           
       
     
    

    If not maybe you can just pass it back as a string...

    [AcceptVerbs(HttpVerbs.Get)]
    public ActionResult GetSquares()
    {
        IList list = new List();
        ....
        return Content(string.Join(",", list));
    }
    

提交回复
热议问题