Skip to content

Validation Errors

While this site doesn't use jQuery/jQuery Validation, it has aspnet-client-validation installed which is compatible with jQuery Validation. Without this, the asp-validation-for for individual fields won't work and the summary will only update on page load.

This project also has tag helpers added to automatically add the necessary classes to the validation error elements.

  • The Test String field is required.
  • The field Test Decimal must be between 1 and 10.
  • The Test Enum field is required.
  • The Test Multiline String field is required.
The Test String field is required.
$
The field Test Decimal must be between 1 and 10. The Test Enum field is required. The Test Multiline String field is required.