MVC 2 – DataAnnotations

Download

Right click “Save as…”

Embed code for this video

Copy the code above to embed our video on your website/blog.

Close

Video format

Note: These selections will fall back to the next best format depending upon browser capability.

Close

af Daniel Frost

Fordelen ved at bruge ”data annotation validators” er, at de gør det muligt for dig at udføre validering, blot ved at tilføje en eller flere attributter på din type – såsom obligatorisk eller StringLength attributten. MVC 2 frameworket giver dig også mulighed for nemt at vise fejlmeddelser ved brugen af netop data annotations.

Tags:

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.