¡@

Home 

2014/10/16 ¤W¤È 12:03:51

jquery Programming Glossary: idlist

Passing an JSON array to MVC Web API via GET

http://stackoverflow.com/questions/14628576/passing-an-json-array-to-mvc-web-api-via-get

to my issue. I have an ASP.NET MVC Web API that looks like this HttpGet public IList Country GetCountryList List long idList And I've tried calling it like this .ajax dataType json data JSON.stringify idList listOfIds type GET url api v1 util CountryList.. Country GetCountryList List long idList And I've tried calling it like this .ajax dataType json data JSON.stringify idList listOfIds type GET url api v1 util CountryList success function result alert result The URL then looks like this https.. function result alert result The URL then looks like this https localhost supertext api v1 util CountryList 22idList 22 46 14 62 83 120 Alternative .ajax dataType json data idList JSON.stringify listOfIds type GET url api v1 util CountryList..