Hi...
How can i create a captcha control that generates different types of shapes everytime the page refreshes?
Captcha Control
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jean PaulRank #32 · 38.5K reputationPosted Oct 31, 2011, 1:26 AM EDT
http://www.c-sharpcorner.com/UploadFile/dhavalweb30/2011/
Andile Choko52 reputationPosted Oct 31, 2011, 1:34 AM EDT
Jean PaulRank #32 · 38.5K reputationPosted Oct 31, 2011, 3:41 AM EDT
If you need custom drawing you have to use the System.Drawing classes in ASP.NET.
The steps would be..
1) Create a canvas from bitmap
2) Draw rectangle and other lines (I am not sure a Triangle class exists, but you can create one with the Line class)
3) Randomly generate text
4) Draw the text on canvas
5) Create jpg/png image from it and show it to user with the text box
6) Save the actual text in user session variable
(better to pack everything into a control)
Regards,
Jean Paul
Dipal ChoksiRank #199 · 12K reputationPosted Oct 31, 2011, 9:39 AM EDT
http://www.codeproject.com/KB/web-image/CAPTCHA_Image.aspx
http://www.codeproject.com/KB/custom-controls/CaptchaControl.aspx
http://www.codeproject.com/KB/aspnet/CaptchaImage.aspx