Code Snippet posted by:
Dilipsharma1990 | Posted on: 7/2/2012 | Category:
ASP.NET Codes | Views: 547 | Status:
[Member] |
Points: 40
|
Alert Moderator
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
Dilip Sharma
Found interesting? Add this to: