Hi,
I am having problem while post large amount of data in ajax request
Check Below Code
var jsonPostData = {
p_HTML: $("#div").html(),
p_FromDate: $("#dpFrom").val(),
p_ToDate: $("#dpTo").val()
}
$.ajax({
url: "url",
contentType: "application/json; charset=utf-8",
type: "post",
dataType: "json",
data: JSON.stringify(jsonPostData),
success: function (result) {
},
error: function (a, b, c) {
}
});
The Ajax Post will Send data to controller method
like /Conroller/Method/
I Add jsonSerialization in web.confige but its not working
I also tried
<appSettings>
<add key="maxJsonLength" value="52428800" />
</appSettings>
but not working
I am getting error
Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
Parameter name: input
Request header something like
Accept application/json, text/javascript, *
.................