Security Code validation on web pages

Dilipsharma1990
Posted by Dilipsharma1990 under ASP.NET category on | Points: 40 | Views : 1215
Rechapcha Image
First of all open https://www.google.com/recaptcha/admin/create
Enter Webdite name like maatticolor.com
Then
Copy Public & private key
Then
Open Visual Stdio
Add button & label
Dowlaod .dll from http://code.google.com/p/recaptcha/downloads/detail?name=recaptcha-dotnet-1.0.5.0-binary.zip&can=2&q=label%3Aaspnetlib-Latest
Addrefrence the lib
The
Page source
<recaptcha:RecaptchaControl
ID="recaptcha"
runat="server"
PublicKey="6Lez7NISAAAAAMY4s7dBZ0uSv3SAX2cp_lBg3KWp"
PrivateKey="6Lez7NISAAAAAGhuyCcJBfpW36UIVs5Pqt6A0yCp"
/>

& button Click _event
if (Page.IsValid)
{
Label1.Text = "You Got It!";
Label1.ForeColor = System.Drawing.Color.Green;
}
else
Label1.Text = "Incorrect";
Label1.ForeColor = System.Drawing.Color.Red;

}


Then u Show Imagine

Comments or Responses

Login to post response