I have a view with @ Html.ValidationSummary ("Please check the following errors:") at the top of the form. The text "Please check the following errors:" is always displayed, regardless of whether the state of the model is valid (I checked the state of the model in both the view and the controller).
Can someone tell me why this is happening? I feel like I'm missing something quite simple here, but I'm at a dead end!
Uh, I just realized why. This was because I removed the default styles for the validation summary! By adding this, I solved the problem:
.validation-summary-valid { display: none; }
D'o!