CustomValidator is designed to give you the freedom to implement your own validation logic when other validators just don't do what you need to do.
EG: when you need to perform some kind of check that does not actually require user input control (for example, checking the presence of a cookie) or if the control you want to check must follow the input rules that are too involved for other validators.
source
share