Click here to Skip to main content
12,954,464 members (56,657 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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 2: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 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 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 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 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,539
CHill60 3,490
Maciej Los 3,143
ppolymorphe 2,030
Jochen Arndt 1,975


Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2017
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