title: How To validate with mvc on html?
body: <p>I want to use this html</p>
  
  <pre><code>&lt;input type="date" name="birthDate" id="birthDate" class="textBox1" required /&gt;
  </code></pre>
  
  <p>and make it act like </p>
  
  <pre><code> @Html.TextBoxFor(m =&gt; m.birthDate, new { @class = "textBox1" })
  </code></pre>
  
  <p>because i want server validation</p>
  
  <pre><code>[Required(ErrorMessage = "must")] 
  [Display(Name = "birth Date")]
  public string birthDate { get; set; }
  </code></pre>
  
  <p>i want the mvc  validation work on </p>
  
  <pre><code>  &lt;input type="date" name="birthDate" id="birthDate" class="textBox1" required /&gt;
  </code></pre>