Generated URL after the form has been submitted:
http://localhost/Search/Index?selectedOrganisationId=26195&selectedOrganisationId=26244
I have a form that is doing a Get Request. I have several hidden fields that are storing id's for a selected organisation ids. The parameter name in the querystring (selectedOrganisationId) is using the same name.
I've checked through StackOverflow and all the solutions seem to only bring back the last value in the querystring (26244) for that given name.
How can I get them all into an array? Is this possible?
MVC handles it and picks up on it perfectly through the Controller -> Action.
selectedOrgainsationId[]=26195&selectedOrganisationId[]=26244, and then you'll have an array of values when youGETthat parameter.