CaptchaImage Text property contents are encrypted?

2 posts, 0 answers
  1. chawkins
    chawkins avatar
    3 posts
    Member since:
    Mar 2013

    Posted 26 Apr 2013 Link to this post


    My question is, the value of CaptchaImage.Text does not change all the way through the page life cycle from Init to PreRender, yet the value it contains is different to that rendered in the CaptchaImage when the browser loads the page. Am I right in thinking that the raw text stored in the Text must then be an 'encrypted' version of the code that the Captcha really displays and against which it will validate on postback? Presumably this means that the CaptchaImage.Text property is not of any use in trying to store or control the code programmatically?

    Thankyou for the confirmation of this.

  2. Slav
    Slav avatar
    1351 posts

    Posted 30 Apr 2013 Link to this post


    Actually the Text property of the CaptchaImage object returns the currently generated random text so it should be the same as the one in the picture. The property does not have a setter and it can be used only for retrieving the captcha code.

    Do you have problems with validating the RadCaptcha code? If so, please elaborate on your scenario so that I can help you accordingly.

    If you have a problem
    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.
  3. Telerik UI for ASP.NET Core is out
Back to Top