Test your technical skills online, appear in Virtual Interview and be ready for job!
Twitter Twitter LinkedIn YouTube Google
Be Interview ready ! | Search
Make friends on DotNetFunda.com and expand your network!

Win Prizes

Like us on Facebook
Top Articles Author
Sat, 19-Apr-2014 Authors
All Time Authors

Latest members | More ...

(Statistics delayed by 5 minutes)

PasswordRecovery with CAPTCHA

Posted by under ASP.NET category on for Beginner level | Points: 250 | Views : 2366 red flag
If you found plagiarised (copied) or inappropriate content,
please let us know the original source along with your correct email id (to communicate) for further action.
Rating: 4 out of 5
1 vote(s)

I will show you how to implement Password Recovery control with CAPTCHA included and how to handle the background processing.


Recently I have found a problem in implementing PasswordRecovery which is provided by ASP.Net. But the problem I faced using this control is hackers can use this to find out the valid usernames from assumptions.


I want to implement CAPTCHA along with the PasswordRecovery and also to avoid hackers to get the valid username, I am passing the same message back from server to the client machine in case of success or failure.

Using the code

Implement the PasswordRecovery

Download the free CAPTCHA control from  http://www.mondor.org/captcha.aspx

Instead of using default SuccessTemplate I have use a Div with id and runat server attribute . This is to show same message in failure or success.

Now I have handled the Captcha errors in the code-behind.

Now trying the functionality.

       Case 1: Enter wrong username with wrong Captcha letters

   Case 2: Enter wrong username with correct Captcha letters

   Case 3: Enter correct username with correct Captcha letters


This is a quick and easiest way to implement CAPTCHA in ASP.NET applications.

Thanks for looking in to my solution.

Page copy protected against web site content infringement by Copyscape
Found interesting? Add this to:

About the Author


Full Name: Pavan Suragana
Member Level: Starter
Member Status: Member
Member Since: 10/22/2012 11:06:05 AM
Country: United Kingdom
Pavan Suragana MCTS suragana_pavan@yahoo.com

Login to vote for this post.

Comments or Responses

Login to post response.

Comments / Responses
Select text & click toolbar to format. Formatting appears in viewmode only. HTML Tags are not allowed.
Bold Italic Underline Paragraph Title Code  Link 
 Wait ... Processing ..... please wait.

Comment using Facebook