Unable to handle long JSON strings
I have a variable varstore which is being sent to the controller from the view using JSON. The problem with the variable is that it can have very long strings somewhere near 30000 characters. My JSON script is as follows
$.ajax({
url: "../Home/GridSubmit",
data: { "ddlstore": varstore, },
contentType: "application/json; charset=utf-8",
traditional: true
})
I have the web.config configured to the following;
<webServices>
<jsonSerialization maxJsonLength="2147483644"/>
</webServices>
<httpRuntime maxQueryStringLength="500000" maxRequestLength="500000"/>`
Upon hitting the action button, I get the following error:
An error occured Error request-URI too Long
Please help
链接地址: http://www.djcxy.com/p/42118.html上一篇: 在动作之间保存状态
下一篇: 无法处理长的JSON字符串