Radcaptcha isvalid is false

5 posts, 0 answers
  1. geetha priya
    geetha priya avatar
    25 posts
    Member since:
    May 2010

    Posted 22 Mar 2011 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Mar 2011 Link to this post

    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

  3. Pero
    Pero avatar
    1156 posts

    Posted 23 Mar 2011 Link to this post

    Hi Geetha,

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

    the Telerik team
  4. Paul D.
    Paul D. avatar
    7 posts
    Member since:
    Dec 2010

    Posted 15 Mar 2012 Link to this post

    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...
  5. Slav
    Slav avatar
    1359 posts

    Posted 19 Mar 2012 Link to this post

    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,
    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.
Back to Top