I'm trying to get a random amount of paramaters in my controller. I think code will explain my issue :-)
In my view I've something like:
<%: Html.CheckBox("Time" + (i-1)) %>
where i is a random value (for example 4).
So, in case i was indeed 4, my controller method woul look like:
public ActionResult Test(int Time0, Time1, Time2, Time3) {
//some code
}
But, the problem is I don't now i. So, the controller should accept a random amount of params.
Any ideas?