title: Do I use one form or one per table row asp.net mvc
body: <p>I just caught myself doing this:</p>
  
  <pre><code>&lt;table&gt;
     &lt;tr&gt;
        &lt;th&gt;Code&lt;/th&gt;
        &lt;th&gt;Enabled&lt;/th&gt;
        &lt;th&gt;Percentage&lt;/th&gt;
        &lt;th&gt;Amount&lt;/th&gt;
        &lt;th&gt;Start&lt;/th&gt;
        &lt;th&gt;End&lt;/th&gt;
        &lt;th&gt;Action&lt;/th&gt;
     &lt;/tr&gt;
     @foreach(var item in Model)
     {
        &lt;tr&gt;
           &lt;td&gt;@Html.ActionLink(item.Code, "Edit", new { id = item.Id })&lt;/td&gt;
           &lt;td&gt;@item.Enabled ? "Yes" : "No"&lt;/td&gt;
           &lt;td&gt;@item.Percentage&lt;/td&gt;
           &lt;td&gt;@item.Amount&lt;/td&gt;
           &lt;td&gt;@item.StartDate&lt;/td&gt;
           &lt;td&gt;@item.EndDate&lt;/td&gt;
           &lt;td&gt;
              @using (Html.BeginForm("Delete", "Discounts", new { id = item.Id }))
              {
                 &lt;input type="submit" value="Delete" /&gt;
              }
           &lt;/td&gt;
        &lt;/tr&gt;
     }
  &lt;/table&gt;
  </code></pre>
  
  <p>The reason I stopped was because I have a form in every row, as a good practice would it be better to have the entire table wrapped in a single form instead?</p>
  
  <p>I probably already know the answer but thought I'd check :-)</p>