Student Reviews
( 5 Of 5 )
1 review
Video of Captcha control in asp net in ASP.net course by kudvenkat channel, video No. 166 free certified online
Text version of the video
http://csharp-video-tutorials.blogspot.com/2014/10/captcha-control-in-aspnet.html
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA/?sub_confirmation1
Slides
http://csharp-video-tutorials.blogspot.com/2014/10/captcha-control-in-aspnet_9.html
All ASP .NET Text Articles
http://csharp-video-tutorials.blogspot.com/p/free-aspnet-video-tutorial.html
All ASP .NET Slides
http://csharp-video-tutorials.blogspot.com/p/aspnet-slides.html
ASP.NET Playlist
https://www.youtube.com/playlist?listPL4cyC4G0M1RQcB4IYS_zwkyBwMyx5AnDM
All Dot Net and SQL Server Tutorials in English
https://www.youtube.com/user/kudvenkat/playlists?view1&sortdd
All Dot Net and SQL Server Tutorials in Arabic
https://www.youtube.com/c/KudvenkatArabic/playlists
In this video, we will discuss using captcha control in asp.net web application.
What is the use of Captcha control
The term CAPTCHA stands for Completely Automated Public Turing Test To Tell Computers and Humans Apart. The following are the 2 most compelling reason for using captcha control
1. To prevent automated computer programs from submitting comments (SPAM). CAPTCHA control ensures only humans can enter comments.
2. To prevent bogus user registrations. For example, when you try to create a new gmail account, notice that there is a captcha control displayed on the registration page. This ensures only humans can register and not automated scripts.
It is very difficult for automated computer programs to read the distorted text displayed in a captcha control.
Example : The data entered in the webform below should only be saved to the database table when captcha control passes validation.
There are several free captcha controls available on the internet. I have tested reCAPTCHA control with ASP.NET and works very well. It is very easy to integrate as well. Here are the steps.
Step 1 : Sign up for API keys.
https://developers.google.com/recaptcha/intro
Step 2 : Download reCAPTCHA ASP.NET library
https://developers.google.com/recaptcha/docs/aspnet
Step 3 : Extract Recaptcha.dll from the downloaded ZIP folder
Step 4 : In your ASP.NET web project, add a reference to Recaptcha.dll assembly
Step 5 : Include the following Register directive on the page
[%@ Register TagPrefix"recaptcha" Namespace"Recaptcha" Assembly"Recaptcha" %]
Step 6 : Add the control declaration on the page where you want the captcha control
[recaptcha:RecaptchaControl ID"recaptcha" runat"server" PublicKey"your_public_key" PrivateKey"your_private_key" /]
Step 7: In the code-behind file check Page.IsValid property
if (Page.IsValid)
{
// If Page.IsValid returns true, captcha control has succeeded validation.
// ADO.NET code to save data to the database
}
else
{
// If Page.IsValid returns false, captcha control has failed validation.
// Display error message to the user
}