Hi...
How can i create a captcha control that generates different types of shapes everytime the page refreshes?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dipal ChoksiPosted Oct 31, 2011, 1:39 PM
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
Jean PaulPosted Oct 31, 2011, 7:41 AM
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
Andile ChokoPosted Oct 31, 2011, 5:34 AM
Jean PaulPosted Oct 31, 2011, 5:26 AM
http://www.c-sharpcorner.com/UploadFile/dhavalweb30/2011/