Invalid code after generate new image

3 posts, 0 answers
  1. Eric Yee
    Eric Yee avatar
    4 posts
    Member since:
    May 2009

    Posted 13 Jan 2010 Link to this post

    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. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 15 Jan 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eric Yee
    Eric Yee avatar
    4 posts
    Member since:
    May 2009

    Posted 25 Jan 2010 Link to this post

    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 :)
Back to Top