Hello,
You can use the
SecurityCode control:
<%@ Register Src="~/CMSFormControls/Inputs/SecurityCode.ascx" TagName="SecurityCode" TagPrefix="uc1" %>
<uc1:SecurityCode ID="captchaElem" runat="server" />
// to verify captcha text use IsValid method
if (captchaElem.IsValid())
{
}
An example of this control can be seen in the Custom registration form web part (
~\CMSWebParts\Membership\Registration\CustomRegistrationForm.ascx)
Best regards,
Michal Legen