Hi. I have an action method that looks like this:
public ActionResult DoSomething(string par, IEnumerable<string> mystrings)
I wanted to map this to a URL using Url.Action, passing mystrings in the RouteValueDictionary. However, this only yields a query string that only corresponds to mystrings.ToString().
How could I pass a list in the query string? Is there some functionality in MVC 2 that supports this?
CLARIFICATION: The action method is called using GET, not POST.
There is no problem for my action method to parse the query string DoSomething?mystrings=aaa&mystrings=bbb
However, I cannot generate this using Url.Action. Passing a list generates the following query string: mystrings=system.collections.generic.list%601%5bsystem.string%5d
Is there some way I could accomplish this easily?