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 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.
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...
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.
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
Hi Vagelis,
The captcha fieldtype is an extension, you can get it here: http://contourcontrib.codeplex.com/releases/view/52576
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.
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...
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?
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..
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;
}
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
is working on a reply...