Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
6081 Points
1336 Posts
Nov 11, 2010 01:45 AM|LINK
Can you add this to your application_start code.
DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(DataTypeAttribute), typeof(DataTypeValidator));
Edit: actually that's not going to work DataTypeValidator is a custom class of mine. Anyway all the adapters should already be registered.
worldspawn[]
Contributor
6081 Points
1336 Posts
Re: DataType.EmailAddress not being Validated
Nov 11, 2010 01:45 AM|LINK
Can you add this to your application_start code.Edit: actually that's not going to work DataTypeValidator is a custom class of mine. Anyway all the adapters should already be registered.
"Wise man say 'forgiveness is divine, but never pay full price for late pizza." - TMNT
software development