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 to a RouteValueDictionary. However, this only gives a query string that matches only mystrings.ToString ().
How can I pass the list in the query string? Is there any functionality in MVC 2 that supports this?
ACKNOWLEDGMENT: the action method is invoked using GET, not POST.
No problem for my action method for parsing a DoSomething query string? mystrings = aaa & mystrings = bbb
However, I cannot generate this using Url.Action. List passing generates the following query string: mystrings = system.collections.generic.list% 601% 5bsystem.string% 5d
Is there any way to make this easy?
source share