I have a binding problem in asp.net MVC.
I want to post 2 arrays to an action.
The problem is that when my first array is more than 1000 elements the other one is refuses to.
Does anyone know why? And how can I correct this?
Here is the data I post to mvc action :
EPFPSelectionsSites[0].UrlSite www.monsite1.com
EPFPSelectionsSites[1].UrlSite www.monsite2.com
EPFPSelectionsSites[2].UrlSite www.monsite3.com
EPFPSelectionsSites[3].UrlSite www.monsite4.com
EPFPValeursSelectionSeries[0].NomSerie 1a3
EPFPValeursSelectionSeries[0].Valeur 5
EPFPValeursSelectionSeries[0].Valeur 6
EPFPValeursSelectionSeries[1].NomSerie 6a5
EPFPValeursSelectionSeries[1].Valeur 7
EPFPValeursSelectionSeries[1].Valeur 3
So when EPFPSelectionsSites is more than 1000 elements, EPFPSelectionsSites is limited and EPFPValeursSelectionSeries is not bind.But it work with less elements.
Thanks.
'GET'request and the array is blowing the max URL length of your web server or browser[HttpPost]attribute is applied to the action method and try it - what happens?