NotNullValidator not working

Mar 31, 2009 at 7:42 PM

I created a solution with the ASP mold, class library en Linq.
I am using the validator on a text field, but when this field is empty, the null validator will not fire. The workaround is to use the StringLengthValidor, but what could be the reason this is not working?

[NotNullValidator( MessageTemplate = "required")]
StringLengthValidator(0, RangeBoundaryType.Exclusive, 5, RangeBoundaryType.Inclusive , MessageTemplate = "required")]




Mar 31, 2009 at 8:03 PM
I was just looking around on the web. And found probably the solutions for this, maybe this is something for a new release?