MVC 2 – DataAnnotations

Embed code for this video

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

Close

Video format

Option selected may change based on video formats available and browser capability.

Close

Download

Right click “Save as…”

  • WMV (WMV Video)
  • MP3 (Audio only)
  • MP4 (iPod, Zune HD)
  • Mid Quality WMV (Lo-band, Mobile)

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:

Follow the Discussion

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.