Can I set an unlimited length for maxJsonLength in web.config?

后端 未结 29 3186
礼貌的吻别
礼貌的吻别 2020-11-21 06:43

I am using the autocomplete feature of jQuery. When I try to retrieve the list of more then 17000 records (each won\'t have more than 10 char length), it\'s exceeding the le

29条回答
  •  余生分开走
    2020-11-21 07:40

    You do not need to do with web.config You can use short property during catch value of the passing list For example declare a model like

    public class BookModel
        {
            public decimal id { get; set; }  // 1 
    
            public string BN { get; set; } // 2 Book Name
    
            public string BC { get; set; } // 3 Bar Code Number
    
            public string BE { get; set; } // 4 Edition Name
    
            public string BAL { get; set; } // 5 Academic Level
    
            public string BCAT { get; set; } // 6 Category
    }
    

    here i use short proporties like BC =barcode BE=book edition and so on

提交回复
热议问题