I have a problem when trying to render multiple models in a view.
Lets say that I have:
Model
public int ID { get; set; }
public ArrayOfThings[] Things { get; set; }
View
for (int i = 0; Model.Things.Count() > i; i++)
{
using (Html.BeginForm("Action", "Controller", FormMethod.Post, new { Id = i }))
{
<p>@Html.CheckBoxFor(m => m.Things[i].IsDone, "Some Check")</p>
<input type="submit" title="Delete" value="Check as Done" name="btn_submit" />
}
}
How would I do this so that the input (submit) button would correlate with the right form? As it is, only the first form is being affected.