I have this code:
Model:
public bool[] ArrayOfBooleans = new bool[2];
View
@using(Html.BeginForm())
{
@:#1
<input name="ArrayOfBooleans[0]" type="checkbox" value="true" />
<input name="ArrayOfBooleans[0]" type="checkbox" value="false" />
<br />
@:#2
<input name="ArrayOfBooleans[1]" type="checkbox" value="true" />
<input name="ArrayOfBooleans[1]" type="checkbox" value="false" />
<br />
<input type="submit" value="Submit"/>
}
When I post this I don't get any changes in ArrayOfBooleans. Is it even possible to "attach" check box to an array element?
NOTE: This is simplified form of a real problem of mine. I have to use collections and more complex objects.