views:

53

answers:

1

I am trying to do a jQuery post the content of a text editor to an asp.net page (asp.net 4.0) from my javascript.The asp.net page will receive it and save it to db.I append the text editor's content in the querystring.When the content is big, I am getting the following exception

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

It works fine for small content.But when the content is big,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
                 }
            });
+1  A: 

is this ASP.net 4.0? if then you can set the maxQueryStringLength like this.

<httpRuntime maxRequestPathLength="360" maxQueryStringLength="1024" /> 
Shoban
Oh yes its 4.0.I forgot to add to the question.Now updated
Shyju