Validate() public static method

public static Validate ( string TestValue ) : bool
TestValue string
return bool
Example #1
0
        public bool Validate()
        {
            this.IsValid = CaptchaImage.Validate(this.CaptchaText);

            if (!this.IsValid)
            {
                this.ValidationMessage = this.IsNotValidMessage;
            }
            else
            {
                this.ValidationMessage = this.IsValidMessage;
            }

            return(this.IsValid);
        }