When adding multiple controls to a page, give them all the same attributes nameso that you can do the following in your action:
public ActionResult MyAction(string[] items)
{
return View();
}
So your HTML code will like it
<input type="text" name="items" />
<input type="text" name="items" />
<input type="text" name="items" />
<input type="text" name="items" />
<input type="text" name="items" />
<input type="text" name="items" />
source
share