How can I pass a list of parameters to a ActionLink
all of which have the same name? I am using the default route.
I am looking for something like the following, but I know that anonymous objects can't have keys with the same name. Also, RoutingValueDictionary
cannot have keys with the same name.
@Html.ActionLink("Link Name", "Index", "Home", new {key="val1", key="val2", ... }, null)
Which would link to
localhost:8080/Home/Index?key=val1&key=val2& ...
How can I create this link?