title: server side validation, how to pass errors to view in MVC?
body: <p>Using .net MVC and I am doing some server side validation in my Action that handles the form post.</p>
  
  <p>What is a good technique to pass the errors back to the view?</p>
  
  <p>I am thinking of creating an error collection, then adding that collection to my ViewData and then somehow weave some javascript (using jQuery) to display the error.</p>
  
  <p>It would be nice it jQuery had some automagic way of display an error since this is a common pattern.</p>
  
  <p>What do you do?</p>