Soby Web Components

Date Validator

This example demonstrates how to use date validator in the Soby Validator.
"sobyValidate.GetValidator" method takes one parameter. The parameter is the type of the validator. This method returns the validator for the given type. "Validate" method of the validator, returns as invalid if the given value is not a valid email. It returns as valid if the given value is a valid email.

 sobyValidate.GetValidator(soby_ValidatorTypes.Email).Validate("test@sobiens.com");
Output:true
sobyValidate.GetValidator(soby_ValidatorTypes.Email).Validate("test.sobiens.com");
Output:false
sobyValidate.GetValidator(soby_ValidatorTypes.Email).Validate("test.sobiens.com");
Output:false
View source