Hi,
Using .net MVC and I am doing some server side validation in my Action that handles the form post.
What is a good technique to pass the errors back to the view?
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.
It would be nice it jQuery had some automagic way of display an error since this is a common pattern.
What do you do?