I have a form that posts several like named elements to an action like so:
<%= Html.TextBox("foo") %>
<%= Html.TextBox("foo") %>
<%= Html.TextBox("foo") %>
posts to and returns:
public ActionResult GetValues(string[] foo)
{
//code
return RedirectToAction("Results", new { foo = foo })
}
the "Results" action then looks like this:
public ActionResult Results(string[] foo)
{
//code
return View()
}
The issue I'm having is that after the redirect my url looks like this:
/results?foo=System.String[]
instead of the intended:
/results?foo=value&foo=value&foo=value
Is there any way to get this to work with my current set-up?