Increasing maximum response size from ASP.NET Page Method

后端 未结 1 1235
深忆病人
深忆病人 2020-12-10 04:12

I\'ve got a page method on an ASPX page that gets called by a jQuery AJAX POST request. When I try to return too many results, the request fails. Is there a web.config setti

1条回答
  •  攒了一身酷
    2020-12-10 05:07

    I am assuming you are returning JSON?

    You can adjust the JSON response size in the web.config with:

    
        
              
                                                                    
                                      
                 
            
        
    
    

    Doing a quick search, it looks like the default size is 102400.

    maxJsonLength Optional attribute.

    Configures the maximum length of the JSON string (the maximum number of UTF-8 characters).

    The default length is 102400.

    Source

    0 讨论(0)
提交回复
热议问题