title: Check if Html.ValidationSummary() has a value
body: <p>How can I check if Html.ValidationSummary() has any errors?</p>
  
  <p>Ultimate result required:</p>
  
  <pre><code>&lt;% if(I_HAVE_ERRORS) {%&gt;
  &lt;div&gt;&lt;%= Html.ValidationSummary() %&gt;&lt;/div&gt;
  &lt;%}%&gt;
  </code></pre>
  
  <p>In other words, how can I determine "I_HAVE_ERRORS"?</p>