I am using ASP.NET MVC 2.
Html.DropDownListFor and Html.TextAreaFor automatically get red borders when the validation fails.
How to make the four borders of a TextBox (using Html.TextBoxFor) red when it fails validation?
For example, I have a TextBox that is required and when the user submits the form without specifying a value in the textbox, I want the textbox to have red borders.