Hi, how do I deny blank spaces (" ") using Enterprise Library validation?
[StringLengthValidator(1, RangeBoundaryType.Exclusive, 100, RangeBoundaryType.Inclusive)]
allows them.
Thanks.
Hi, how do I deny blank spaces (" ") using Enterprise Library validation?
[StringLengthValidator(1, RangeBoundaryType.Exclusive, 100, RangeBoundaryType.Inclusive)]
allows them.
Thanks.
You could try a regular expression validator:
[RegexValidator("^([ ]+)$", MessageTemplate = "Invalid")]