VAB, validating DateTime, Decimal etc values in entity?

Apr 11, 2007 at 3:42 PM
Hi there,
I am wondering how to use the VAB to validate that the user is inserting a valid DateTime or Decimal value when submitting a form. I have a property of type DateTime but there is no DateTimeValidator that I can see. I have tried a RegexValidator but I get back a message "The supplied value could not be converted to the target property type." where I would like to see a message like "Invalid date." if the user enters in "ABC" for a datetime. I am using the PropertyProxyValidator to show the validation message back to the user. Likewise validating against and other property types (IE decimals ect) Any help would be greatly appreciated!
Apr 11, 2007 at 5:44 PM
This is the CodePlex website forum. You're looking for the Enterprise Library project, which is here.
Apr 11, 2007 at 5:54 PM
Sorry, my bad. This can be deleted.