title: ASP.Net MVC 3 validation on AjaxForm
body: <p>I have an ajax form on razor view engine. For validation i use dataanotation classes. Validation work fine when user submit the form, validation messages work fine.
  The problem is, validation wont work on keyup or blur events.</p>
  
  <p>How can i activate validation without submit on ajaxform(ajax.beginform)</p>
  
  <p>Here is my view code:</p>
  
  <pre><code>@using (Ajax.BeginForm(new AjaxOptions { InsertionMode = InsertionMode.Replace,       
          UpdateTargetId = "employeeDetail", HttpMethod = "Post", OnComplete = "Complete", 
          Confirm = "Confirm?" }))
  {
      @Html.TextBoxFor(model =&gt; model.Email)
      @Html.ValidationMessageFor(model=&gt;model.Email)
      &lt;span style="float:right"&gt;&lt;input type="submit" class="tableGenelButton" id="submitButton" value="Kaydet" /&gt;&lt;/span&gt;
  }
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>  [RequiredWithMessage]
    [Display(Name = "E-Mail")]
    public string Email { get; set; }
  </code></pre>