How to use html.ValidationMessageFor
It was silly simple…..I just didn’t add the ErrorMessage field as part of the [Required] decorator. For example: Now, if a user either doesn’t enter anything in the name fields, or enters something over 30 characters, the Post method doesn’t get executed and the user gets a little message telling them what’s wrong.