I'm trying to call a controller method by Ajax like this:
$.get("@Url.Action("MethodName", "ControllerName")",
{
groupID: Id,
namePt: pt,
nameEn: en,
nameFr: fr,
nameAr: ar,
selectedProducts: listProd
},
function success(data) {
//do something
}).fail(function() {
//do something
});
I fill the listProd with values (products IDs) from a drop down list.
The problem is when the listProd contains more than 81 items... the controller method is not called and no error is displayed.
When the listProd contains 81 items or less, all works fine.
Is there a size limit to a list in ajax call?