Skip to content
srkirkland edited this page Jun 21, 2011 · 17 revisions

About DataAnnotationsExtensions

This project provides common validation attributes (full available below) which extend the built-in ASP.NET DataAnnotations (Required, Range, RegularExpression and StringLength).

The core library provides server-side validation attributes that can be used in any .NET 4.0 project (no MVC dependency). There is also an easily pluggable client-side validation library which can be used in ASP.NET MVC 3 projects using unobtrusive jquery validation (only MVC3 included javascript files are required).

All validation attributes are covered with unit tests and also have a dedicated controller in the included sample website. You can view live demos of every validator on the official website http://dataannotationsextensions.org/

Development Status

Currently implemented validation attributes

  • Email
  • Url
  • CreditCard
  • Cuit
  • EqualTo
  • FileExtensions (Makes the element require a certain file extension)
  • Date
  • Year [Coming in the next release]
  • Numeric
  • Min
  • Max
  • Digits
  • Integer (like digits, but allows a leading negative sign)

Version History

Version History

Clone this wiki locally