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

Radcaptcha isvalid is false

4 Answers 148 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
geetha priya
Top achievements
Rank 1
geetha priya asked on 22 Mar 2011, 02:31 PM
hi
i am using radcaptcha in a div.
if i validate the radcaptcha on buttons click , the radcaptcha.isvalid is always false..
how can i do this validation?

help me.

thanks in advance.
geetha.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Mar 2011, 06:25 AM
Hello Geetha,

This behavior is expected, since RadCaptcha is designed to refresh its image on every postback. One approach is to use UpdatePanel with UpdateMode="Always".

You can get more on this from the following forum which discussed the same.
Captcha is not validating properly when post back

Thanks,
Shinu.
0
Pero
Telerik team
answered on 23 Mar 2011, 12:21 PM
Hi Geetha,

You might also wanna try calling RadCaptcha.Validate(), and Page.Validate(validationGroup) before checking the IsValid property.

Greetings,
Pero
the Telerik team
0
Paul D.
Top achievements
Rank 1
answered on 15 Mar 2012, 04:40 PM
It would sure be nice if this info about calling RadCaptcha.Validate and Page.Validate were actually in the RadCaptcha documentation.
It seems to  me to be critical to the control working properly (at least it certainly was in my case) yet I had to spend time (a lot of time) spinning my wheels, searching forums, etc... to find a very simple solution but an undocumented one.
Or rather, buried down in the Forums and Methods page but not mentioned in the First Look, Help, etc...
0
Slav
Telerik team
answered on 19 Mar 2012, 05:12 PM
Hi Paul,

Truly, there are cases that require the use of the Validate method and that are not covered by the RadCaptcha documentation. Thank you for bringing this to our attention, the method and the scenarios, in which it should be utilized will be added with the next update of the RadCaptcha documentation.

Kind regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Captcha
Asked by
geetha priya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Pero
Telerik team
Paul D.
Top achievements
Rank 1
Slav
Telerik team
Share this question
or