customvalidator unexpectedly firing with blank text

280 Views Asked by At

I have a class that inherits from CustomValidator which is set to validate a textbox. The problem is, it is firing even when the textbox is empty. The ValidateEmptyText property is not set. Has anyone seen this behaviour with Custom Validation controls and found a cause?

It only does it with server controls which inherit CustomValidator. Using the asp:customvalidator control works fine. I am using .Net 4.0

0

There are 0 best solutions below