title: MVC - Binding dynamically added controls to a List<T> in a Model
body: <p><strong>Using MVC 5 with a Razor (.cshtml) view</strong></p>
  <p>You have a list of values in a model that needs to ultimately get data from a control in the view and append them to the list.</p>
  <p>For example:</p>
  <p>The <strong>model</strong> contains: <code>public List&lt;string&gt; value { get; set; }</code></p>
  <p>The List is allowed to contain up to 70 values, but can contain less.</p>
  <p>In the <strong>view</strong> you have a button that dynamically adds <code>@Html.editorfor</code> fields, much like this: <a href="https://i.stack.imgur.com/WlPs6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WlPs6.png" alt="enter image description here" /></a></p>
  <p>For each new field that is created, it's corresponding value must be appended to the <code>List&lt;string&gt; value</code>. So in this example,</p>
  <p>The user clicks &quot;Add Field&quot;, the new text box appears, and he enters &quot;Line 1&quot;</p>
  <ul>
  <li>When submitted, this field will post to the first index of the value list  like so: <code>value[0] = &quot;Line 1&quot;</code></li>
  </ul>
  <p>The user clicks &quot;Add Field&quot; again to add another value - he enters &quot;Line 2&quot;</p>
  <ul>
  <li>When submitted, this field will post to the second index of the value list like so: <code>value[1] = &quot;Line 2&quot;</code></li>
  </ul>
  <p>The User can add UP TO 70 fields (i.e He can click &quot;add field&quot; 65 times to add 65 values to the value list)</p>
  <p>What would be the quickest and most efficient way to bind the data in this manner?</p>