Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vagelis 3 posts 23 karma points
    Nov 16, 2010 @ 11:12
    Vagelis
    0

    Capthca for Contour

    Hello,

    as it is said at the webpage of contour, ..."the program contains Captcha field types that cannot be detected by the SPAM robots".. but I cannot find such a field type in Contour.

    Moreover, I tried to make my own one field type(a captcha custom field type) as our client does not want recaptcha.

    So I managed to render the captcha as a WebControl but I cannot find how to validate the capthca, even though I read the documentation, there is no description for server side validation in there.

    I would appreciate any help!

  • Comment author was deleted

    Nov 16, 2010 @ 11:36

    Hi Vagelis,

    The captcha fieldtype is an extension, you can get it here: http://contourcontrib.codeplex.com/releases/view/52576

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Nov 16, 2010 @ 11:37
    Sebastiaan Janssen
    0

    I haven't seen the captcha field types either, maybe I'm missing something.

    You could have a look at the implementation of the recaptcha control in the source of the Contour Contrib project. But basically this is up to the captcha control that you've chosen. If it supports server side validation in .net, you should have a look at their documentation to see how to use it.

  • Vagelis 3 posts 23 karma points
    Nov 16, 2010 @ 12:10
    Vagelis
    0

    Hi Tim and thank you for the response, as I described in the previous post our client does not want reCapthca implementation, just capthca. Moreover reCapthca is very hard to read for the majority of the users. Contour Contrib has developed a reCapthca solution till now, but not capthca, unfortunately.

    Sebastian I tried to grab something from the source code but still no luck, as it seems that the validation of the reCapthca happens in the built in mechanism of it.

    Am I missing something else here? Is there any chance that Contour has antispam settings already built in?

    It just does not make any sense for a package such Contour not having an antispam mechanism...

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Nov 16, 2010 @ 12:30
    Tim
    0

    Which captcha are you trying to integrate, is it one that you've built yourself, or do you have a link to the one you are using?

  • Vagelis 3 posts 23 karma points
    Nov 16, 2010 @ 12:38
    Vagelis
    0

    I am trying to intergrate this solution.

    As I said before, I can render the capthca but I cannot validate it. I do not know where to put the validation code.

    I gave a try with some .net events but no luck..

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Nov 16, 2010 @ 13:14
    Sebastiaan Janssen
    0

    In the page load event, have you put something like this in there (from step 3)?

    ccJoin.ValidateCaptcha(txtCap.Text);
    if (!ccJoin.UserValidated)
    {
      //Inform user that his input was wrong ...
      return;
    }
  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Nov 16, 2010 @ 16:20
    Tim
    0

    What Sebastiaan said I think!

    It doesn't look like that control hooks into the asp.net validation system, i.e. you have to manually validate it, it doesn't autovalidate like the required field validators etc that ship with asp.net. If it implemented that functionality, you could just add it to the contour validationgroup and it would work.

    You may need to add a custom validator to the capcha control, so that it can set page.IsValid to be false. There's info on creating custom validators here: http://msdn.microsoft.com/en-us/library/9eee01cx.aspx

Please Sign in or register to post replies

Write your reply to:

Draft