This is a migrated thread and some comments may be shown as answers.

Telerik RadCaptcha / How Can We Validate RadCaptcha From Code Behind / WithOut Using Validation Group

3 Answers 129 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Majid Darab
Top achievements
Rank 1
Majid Darab asked on 02 Nov 2010, 10:27 PM

Hi My Dear Friends :

How Can We Check The Validation Of RadCaptcha From Code Behind - With Custom Validator(ServerValidate) / WithOut Using And Setting ValidationGroup ?

thanks In Future Advance

Best Regards...

3 Answers, 1 is accepted

Sort by
0
Majid Darab
Top achievements
Rank 1
answered on 03 Nov 2010, 04:42 PM
i would be appreciate for attention to this thread...
waiting ...
0
Pero
Telerik team
answered on 04 Nov 2010, 10:42 AM
Hello Majid,

You can check whether the correct code was entered by using the RadCaptcha's IsValid property. To be sure that validation has occurred please invoke the RadCaptcha's and Page's Validate method:

RadCaptcha1.Validate();
Page.Validate();
 
if(RadCaptcha1.IsValid)
{
    //TODO: Add your logic here
}


Kind regards,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
DevMohamed
Top achievements
Rank 1
answered on 27 Nov 2014, 09:57 AM
for more effective scenario to prevent all validations fire in your page you can use :)

RadCaptcha1.Validate();

if(Page.IsValid)

{    //TODO: Add your logic here}
Tags
Captcha
Asked by
Majid Darab
Top achievements
Rank 1
Answers by
Majid Darab
Top achievements
Rank 1
Pero
Telerik team
DevMohamed
Top achievements
Rank 1
Share this question
or