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());
 }
Exemple #2
0
 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
 }