1.In Web.config file
in handlers section
2.Add Captcha DLL to AddReferences
3.Aspx
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
4.in button click write
if (!CaptchaControl1.UserValidated)
{
lblmessage.Text = "You Enterted Text Doesn't Match";
return;
}
else
{
lblmessage.Text = "Secuessfully entered";
CaptchaControl1.Visible = false;
txtCaptch.Visible = false;
lbltext.Visible = false;
lblmessage.Visible = false;
}
in handlers section
2.Add Captcha DLL to AddReferences
3.Aspx
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
4.in button click write
if (!CaptchaControl1.UserValidated)
{
lblmessage.Text = "You Enterted Text Doesn't Match";
return;
}
else
{
lblmessage.Text = "Secuessfully entered";
CaptchaControl1.Visible = false;
txtCaptch.Visible = false;
lbltext.Visible = false;
lblmessage.Visible = false;
}
Comments
Post a Comment