title: ASP.NET MVC 3: Editor templates for fields
body: <pre><code>&lt;tr&gt;
     &lt;td&gt;
          @Html.Label("Notes") &lt;/td&gt;&lt;td&gt; @Html.TextArea("Notes")
     &lt;/td&gt;&lt;/tr&gt;
     &lt;tr&gt;&lt;td&gt;
          @Html.Label("Action Date")&lt;/td&gt;&lt;td&gt; @Html.TextBoxFor(m =&gt; m.Due, new { @class = "dateTimePicker" })&lt;/td&gt;&lt;td&gt;
          @Html.ValidationMessageFor(m =&gt; m.Due)
     &lt;/td&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>Anyway I can create a template that will take any <code>@HTML.Label</code>, <code>@Html.Textbox</code> etc etc, and their <code>for</code> counterparts and place them into a table properly? without me having to polute all my views with table markups.</p>