title: Removing Duplicate Error Messages From Validation Summary Control
body: <p>I have situation where I have a number of validators with the same error message on a page, when the page is validated these duplicates are shown in the validation summary. </p>
  
  <p>I would like to remove these duplicates from the validation summary server side.</p>
  
  <p>Here's some pseudo code of what I'd like to do.</p>
  
  <pre><code>validationSummery.ErrorMessages = validationSummery.ErrorMessages.DistinctBy(x=&gt;x.ErrorText);
  </code></pre>
  
  <p>Having looked into the validation control it appears there is no access to the messages it displays. </p>
  
  <p>I could iterate over all of the page validators which are invalid before the validation summary gets to them and set only one of each message type to valid but then I would not get the error message next to each control.</p>
  
  <p>Does anyone know a way to do this?</p>