title: C# ASP.NET MVC Table rows as form values FormCollection
body: <p>I'm stuck with getting values out of the FormCollection in my controller. The problem is that my form is a table.</p>
  
  <pre><code>   &lt;% using (Html.BeginForm("PasOverlappendeAfwezighedenAan", "Afwezigheid")) {%&gt;        
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;&lt;/th&gt;
          &lt;th&gt;
              datumVan
          &lt;/th&gt;
          &lt;th&gt;
              datumTot
          &lt;/th&gt;
  
          &lt;th&gt;
              beginUur
          &lt;/th&gt;
          &lt;th&gt;
              eindUur
          &lt;/th&gt;
         &lt;th&gt;
              reden
          &lt;/th&gt;
      &lt;/tr&gt;
  
         &lt;% foreach (var item in Model.Afwezigheden)
            { %&gt;
      &lt;tr&gt;
          &lt;td&gt;
            &lt;input type="text" name="datumVan" id="datumVan" value="&lt;%: String.Format("{0:g}", item.datumVan) %&gt;" /&gt;  
          &lt;/td&gt;
          &lt;td&gt;
                &lt;input type="text" name="datumTot" id="Text1" value="&lt;%: String.Format("{0:g}", item.datumTot) %&gt;" /&gt;  
          &lt;/td&gt;
  
          &lt;td&gt;
             &lt;input type="text" name="beginUur" id="Text2" value="&lt;%: item.beginUur %&gt;" /&gt;  
          &lt;/td&gt;
          &lt;td&gt;
             &lt;input type="text" name="eindUur" id="Text3" value="&lt;%: item.eindUur %&gt;" /&gt;  
          &lt;/td&gt;
           &lt;td&gt;
              &lt;input type="text" name="reden" id="Text4" value="&lt;%: item.reden %&gt;" /&gt;  
          &lt;/td&gt;
      &lt;/tr&gt;
  
  &lt;% } %&gt;
  
  &lt;/table&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>So the Controller should turn each row from the table into an object. </p>
  
  <pre><code>public ActionResult PasOverlappendeAfwezighedenAan(FormCollection fc, Student stud){
  
  }
  </code></pre>
  
  <p>But how would I get a row or the data for one row out of the FormCollection?</p>
  
  <p>Thanks in advance,
  Me</p>
  
  <p>ps: sorry for the dutch names in the codes</p>