SOLUTION: In my case it was ValidateEmptyText="true" needed to be added. Also if you're using multiple validation groups on the page make sure you set your ValidationGroup property as well.
Some discussion here: http://stackoverflow.com/questions/991959/custom-validator-validation-not-firing-for-textbox
Also remember when you use a CustomValidator to ensure you add a Page.IsValid check on your submission button to prevent anything progressing further if the custom validation is false.
No comments:
Post a Comment