title: Email model validation with DataAnnotations and DataType
body: <p>I have following model:</p>
  
  <pre><code>public class FormularModel
  {
      [Required]
      public string Position { get; set; }
      [Required]
      [DataType(DataType.EmailAddress)]
      public string Email { get; set; }
      [Required]
      public string Webcode { get; set; }
  }
  </code></pre>
  
  <p>Required validation works fine. But when i try with DataType it doesn't react.</p>
  
  <p>Here is my razor code for the email control:</p>
  
  <pre><code>   @Html.TextBoxFor
            (model =&gt; model.Email, 
             new { @style = "width: 175px;", @class = "txtField" }
            ) * 
  </code></pre>
  
  <p>So, anyone know an answer?</p>
  
  <p>TIA</p>