title: Why doesn't TextBoxFor include validation elements if called twice for the same model property?
body: <p>Simple question... Here is an example of some razor code:</p>
  
  <pre><code>@Html.TextBoxFor(c =&gt; c.RevisedEstimate)
  @Html.TextBoxFor(c =&gt; c.RevisedEstimate)
  </code></pre>
  
  <p>Here is how this renders:</p>
  
  <pre><code>&lt;input data-val="true" data-val-number="The field Revised Estimate must be a number." id="RevisedEstimate" name="RevisedEstimate" type="text" value="0" /&gt;
  &lt;input id="RevisedEstimate" name="RevisedEstimate" type="text" value="0" /&gt;
  </code></pre>
  
  <p>The obvious question you ask is, "Why are you doing that?". The razor view is actually building client side detail-row templates that are used in KendoUI grids. There are two similar grids and we use the same viewmodel server side. We actually do provide the id element for the template so each field in each row ends up with a unique id. </p>
  
  <p>Why does the second input element not have the data-val and data-val-number elements?</p>