What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 187 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > ASP.NET > Security Code validation on web pages ...
Dilipsharma1990

Security Code validation on web pages

 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:


>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 5:39:36 PM