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