What are Validation Annotations?

Technology CommunityCategory: ASP.NET MVCWhat are Validation Annotations?
VietMX Staff asked 3 years ago

Data annotations are attributes which can be found in the “System.ComponentModel.DataAnnotations” namespace. These attributes will be used for server-side validation and client-side validation is also supported. Four attributes — Required, String Length, Regular Expression and Range are used to cover the common validation scenarios.