title: How can I make ValidationSummary appear on my MVC4 web page?
body: <p>When I code my Razor HTML like this:</p>
  
  <pre><code>@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
     @Html.ValidationSummary()
  }
  </code></pre>
  
  <p>I get the following which is just what I want:</p>
  
  <pre><code>&lt;div class="validation-summary-valid" data-valmsg-summary="true"&gt;
  &lt;ul&gt;
  &lt;li style="display:none"&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>However what I need for the form is the following:</p>
  
  <pre><code>&lt;form class="form" data-href="/User/Account/Register" id="registerForm"&gt;
     @Html.ValidationSummary()
  &lt;/form&gt;
  </code></pre>
  
  <p>With the above code I don't get the validation-summary-valid class. Can
  someone explain why this is or maybe suggest how I could code 
  HTML.BeginForm so that I can get the form definition that I need. </p>