protected void CaptchaValidator_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args) { // validate the Captcha to check we're not dealing with a bot args.IsValid = RegisterCaptcha.Validate(args.Value.Trim()); }
protected void CaptchaValidator_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args) { // validate the Captcha to check we're not dealing with a bot args.IsValid = RegisterCaptcha.Validate(args.Value.Trim().ToUpper()); ControlCode.Value = null; // clear previous user input }