Stats

21 Contributors: 2 Friday, October 21, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

Bootstrap Validation

Remarks

  • This validation technique can only be used on inputs that are within a form.

  • Properties must have at least one validation requirement to show highlighting on a failed onSubmit() validation. Data types (other than string) have a hidden data type requirement, so do not require an explicit data annotation. Strings do not have this, so to force a validation check along with the other fields, add the data annotation [MinLengthAttribute(0)].

Related Examples