Enterprise Library C#
-
Hi all, I am using Enterprise Library for validation on fields on the form. I have a field for email, I want to validate it using REGEX Validator if email is entered into the field, or if the field is left blank, I do not want any validation to happen on it. Which validator do I have to use to both ALLOW Null and check if email is entered. I hope this makes sense. Thanks,
-
Hi all, I am using Enterprise Library for validation on fields on the form. I have a field for email, I want to validate it using REGEX Validator if email is entered into the field, or if the field is left blank, I do not want any validation to happen on it. Which validator do I have to use to both ALLOW Null and check if email is entered. I hope this makes sense. Thanks,
-
Thanks for posting. Am using Winforms and C# mate, I should have been more specific.
-
Hi all, I am using Enterprise Library for validation on fields on the form. I have a field for email, I want to validate it using REGEX Validator if email is entered into the field, or if the field is left blank, I do not want any validation to happen on it. Which validator do I have to use to both ALLOW Null and check if email is entered. I hope this makes sense. Thanks,
You can add more than one validator, or use a custom validator, self validator Introduction to Validation Application Block[^]
I know the language. I've read a book. - _Madmatt