protected void RegisterUser_CreatingUser(object sender, LoginCancelEventArgs e)
{
// Hata mesajı alırsanız var yerine Recaptcha.RecaptchaControl ifadesini de yazabilirsiniz
var captcha = (Recaptcha.RecaptchaControl)RegisterUser.CreateUserStep.ContentTemplateContainer.FindControl("recaptchaCtl");
if (null == captcha)
{
e.Cancel = true;
return;
}
captcha.Validate();
if (!captcha.IsValid)
{
//Buraya hata mesajınızı yazın.
e.Cancel = true;
return;
}
e.Cancel = false;
}