JQuery message for asp.net page error: query string length for this query exceeds the configured maxQueryStringLength value

I am trying to make jQuery message the contents of a text editor on an asp.net page (asp.net 4.0) from my javascript. The asp.net page will get it and save it in db.I add a text editor to querystring.When the content is great, I get the following exception

The length of the query string for this request exceeds the configured maxQueryStringLength value. 

It works great for small content. But when the content is large, it throws an error

Here is my javascript code

  var content1 = $("#txtAdminLabelEdit"+id).val(); content = encodeURIComponent(content1); var url = "handlers/adminhandler.aspx?mode=savecontent&page=home&lid=1&vid=2&ltxt=" + content; $.post(url, function (data) { if (data == "yes") { //do something } }); 
+4
source share
1 answer

is ASP.net 4.0? if then you can set maxQueryStringLength as follows.

 <httpRuntime maxRequestPathLength="360" maxQueryStringLength="1024" /> 
+6
source

All Articles