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

Invalid code after generate new image

2 Answers 83 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Eric Yee
Top achievements
Rank 1
Eric Yee asked on 13 Jan 2010, 06:26 AM
Hi Telerik team!
I'm having trouble with the RadCaptcha and I'm hoping you can show me what I'm doing wrong.  I have a web garden and I have set the handler's path to "Telerik.Web.UI.WebResourceSession".  When I clicked "Generate New Image" and entered the resulting code, the IsValid property is false during postback.  If I use the initial image and not generate a new one, the entered code will be accepted.  Below is the aspx code:

 

 

 

      <p> 
        <asp:Label runat="server" AssociatedControlID="m_captchaText" 
          style="display:block !important;font-size:smaller;color:Gray" 
          Text="This verification deters automated registrations" /> 
        <asp:TextBox ID="m_captchaText" runat="server" MaxLength="10" /> 
      </p> 
      <telerik:RadCaptcha ID="m_captcha" runat="server"   
        ProtectionMode="Captcha" EnableRefreshImage="true" 
        ImageStorageLocation="Session" MinTimeout="3" 
        ValidatedTextBoxID="m_captchaText">  
        <CaptchaImage BackgroundColor="#DBEAF5" BackgroundNoise="Low" 
          FontWarp="Low" LineNoise="Medium" TextColor="#336699" 
          TextLength="5" UseRandomFont="true" RenderImageOnly="true" /> 
      </telerik:RadCaptcha> 

Thank you for your help.

2 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 15 Jan 2010, 04:26 PM
Hello Eric,

In the version that you are using there is a problem related to the RadCaptcha control - the "Refresh New Image" button causes validation to be performed (its CausesValidation property is not set to false). This problem is fixed and you should download the latest official version of the RadControls for ASP.NET AJAX.       

If the new DLL does not fix the issue, can you please send us a fully running project that demonstrates the problem? Once we have a closer look, we can provide an adequate solution.

Kind regards,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Eric Yee
Top achievements
Rank 1
answered on 25 Jan 2010, 10:45 PM
Hi Pero,
I figured out my problem.  I was using the ScriptManager that came with Ajax Toolkit.  When I switched to using the Telerik script manager, it worked correctly.  I apologize for the false alarm.

eric :)
Tags
Captcha
Asked by
Eric Yee
Top achievements
Rank 1
Answers by
Pero
Telerik team
Eric Yee
Top achievements
Rank 1
Share this question
or