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

captcha fails on modal popup

1 Answer 198 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
sa
Top achievements
Rank 1
sa asked on 01 Sep 2010, 07:50 AM
hi all,

i have a problem with captcha control when i use it on a modal popup. validation always fails. there is no problem with pages but when i use captcha control in a panel which opens by an ajaxmodalpopupextender, myCaptcha.IsValid always returns false. any idea would be appriciated

thanks.

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 06 Sep 2010, 02:18 PM
Hello,

Is the Ajax modal popup extender making an ajax call before showing the RadCaptcha control? When an AJAX request is fired, the server-side page goes through its full page lifecycle. This means that a new RadCaptcha code will be generated, but because it's an AJAX update it would not be shown on the image (the old code is still shown because the RadCaptcha is not affected by the partial page update). So, the user sees the old code and enters it correctly but still gets an Error Message, because this old code is not valid anymore.

To overcome this, you should place the RadCaptcha control into an UpdatePanel with UpdateMode = Always. This way you can be sure the captcha has the latest code displayed.

All the best,
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
Tags
Captcha
Asked by
sa
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or