Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
can anyone tell me pls how to generate
Captcha code for verification
in asp.net4.0....pls help me...by tonight i have to complete the task....pls help me
Posted 28-Feb-13 3:46am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Some more examples:
Simple CAPTCHA, Create your own in C#[^]
Captcha [^]
 
Good luck,
OI
  Permalink  
Comments
Member 8701813 at 28-Feb-13 9:32am
   
hi the code which u have referred is generating only numbers...if letters along with numbers are to be generated then what should i do...pls help me..
Orcun Iyigun at 28-Feb-13 10:45am
   
I assume you used the second link. There is a line there
char[] Possibilities = "abcdefghjkmnpqrstuvwxyz".ToCharArray();
If you want numbers as well add the numbers to that line.
char[] Possibilities = "abcdefghjkmnpqrstuvwxyz0123456789".ToCharArray(); DOH!!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Use this. I have used this in all my projects
A CAPTCHA Server Control for ASP.NET[^]
  Permalink  
Comments
Member 8701813 at 28-Feb-13 9:29am
   
hi i am using asp.net4.0 and c# not vb. i don't have captcha control in my toolbox...
aspnet_regiis -i at 28-Feb-13 10:35am
   
Instead of posting this reply, and waiting for someone to provide a C# version, you should have converted the code to C#.. A lot of free online tools are available .. Check here http://www.developerfusion.com/tools/convert/vb-to-csharp/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100