First: Add <add key= "clientvalidationenabled" value= "true" in the Web. config file in the <appSettings> node/>
Step one: Import Jquery.min.js and Jquery.validate.min.js and Jquery.validate.unobtrusive.min.js
Step two: Attributes of the entity class are added to the validation attribute
Step three: Generate labels using HtmlHelper's helper methods
End-of-service check: if (modelstate.isvalid)
Common validation Features
[Compare ("")] equal judgment
[Remote ("Method name", "controller name")]
[OutputCache (Duration)] cache, default absolute expiration time
Equivalent to adding within the <system.web> node in the Web. config file
<caching><outputcachesettings><outputcacheprofiles><add name= "KeepOneHour" duration= "3600" Varybyparam= "None"/></outputcacheprofiles></outputcachesettings></caching>
[ValidateInput (false)] turn off label validation
Validation of ASP.