title: How to correctly iterate elements?
body: <p>I'm iterating my <code>Model.Payments</code> collection (which is an <code>public IEnumerable&lt;Payments&gt; Payments { get; set; }</code>):</p>
  
  <pre><code>@using (Html.BeginForm())
  {
      &lt;div class="payments"&gt;
          @foreach (var payment in Model.Payments)
          {
              Html.RenderPartial("_Payment", payment);
          }
      &lt;/div&gt;
  
      &lt;input type="submit" value="Aggiorna" /&gt;
  }
  </code></pre>
  
  <p>And this is my <code>_Payment</code> partial:</p>
  
  <pre><code>@model MyProject.Models.Payments
  
  &lt;div class="payment-row"&gt;
      &lt;span&gt;ActivityID:&lt;/span&gt; @Html.TextBoxFor(x =&gt; x.ActivityID)
      &lt;span&gt;PaymentType:&lt;/span&gt; @Html.TextBoxFor(x =&gt; x.PaymentType)
      &lt;span&gt;Amount:&lt;/span&gt; @Html.TextBoxFor(x =&gt; x.Amount)
  &lt;/div&gt;
  </code></pre>
  
  <p>But it doesn't create a proper HTML. Name/ID are the same, so once I postback, I can't retrieve data.</p>
  
  <p>Where am I wrong?</p>