This is a migrated thread and some comments may be shown as answers.
Set Captcha Numbers
3 Answers 25 Views
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 02 Apr 2013, 02:04 AM
Hi,

How to use only numbers in RadCaptcha?

Thanks,
Joseph.

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 02 Apr 2013, 04:22 AM
Hi Joseph,

You can set the CaptchaImage-TextChars property of the RadCaptcha to Numbers so that only numeric characters appear in the RadCaptcha Image.

Thanks,
Princy.
0
Joseph
Top achievements
Rank 1
answered on 03 Apr 2013, 02:18 AM
Hi Princy,

Thanks for the reply. Is it possible to cancel the default validation mechanism and add a custom one? Is there any custom validation method to do so?
0
Accepted
Princy
Top achievements
Rank 1
answered on 03 Apr 2013, 04:14 AM
Hi Joseph,

The event CaptchaValidate is fired berfore the control is validated. This event allows you to execute server-side code on RadCaptcha validation, to cancel the default validation mechanism of the captcha control and to specify your own logic for validating the RadCaptcha.
Please check the sample C# code provided below.

C#:
protected void RadCaptcha1_CaptchaValidate(object sender, CaptchaValidateEventArgs e)
{
    e.CancelDefaultValidation = true; //Cancel the default validation mechanism.
  
    // Your logic to perform custom validation.
}

Thanks,
Princy.
Asked by
Joseph
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Joseph
Top achievements
Rank 1
Share this question
or