title: Displaying a Validation Summary using Ajax.BeginForm
body: <p>I have a login form, which initially used the following syntax:</p>
  
  <pre><code>@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
  </code></pre>
  
  <p>I modified it like so:</p>
  
  <pre><code>@using (Ajax.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, new AjaxOptions(), new { @class = "form-horizontal", role = "form" }))
  </code></pre>
  
  <p>In my form I show a validation summary like so:</p>
  
  <pre><code>@Html.ValidationSummary(true)
  </code></pre>
  
  <p>Whenever I switched my form over to Ajax, I am not seeing a validation summary any more. Is there a quick fix for this, or will I have to do more work (alter my controller code to return a partial view etc)?</p>
  
  <p>Thanks</p>