[Full source code] image Verification Code Control Suite [original]

Source: Internet
Author: User
Image Verification Code Control Suite

It includes a validatecodeimage control that generates only one verification code image and a validatecodecontrol that integrates the verification function. You can only use validatecodeimage. However, to use validatecodecontrol, a page must use the validatecodeimage control to call validatecodecontrol. The reason is very simple. I believe everyone knows that I will not be too long.

It must be noted that both controls provide the validatecodesessionname attribute, which must have the same names. Otherwise, the system will always fail the verification or "the instance with the object not referenced" error will occur.

Function:
1. Set the value range of the Verification Code characters
2. Set the verification code length.
3. Set whether the verification code length is random or fixed.
4. Set whether the Character Color of the verification code is static or random)
5. Each character of the verification code can be set to a different color (randomall)
6. You can set the background color of the verification code.
7. You can set the border color and Border width of the verification code.
8. The border color of the verification code can be random.
9. You can set the level of the interference line (defined by the system) or the number of custom interference lines.
10. You can set the length of the interference line.
11. Random verification code font
........

Because there is no way to plot in the specified area of the page, a control integrating the verification code input control and the link to refresh the verification code is provided. The control provides a bool ismatch () method and a heavy load bool ismatch (bool bingorecase) of this method ). When submitting an operation, you only need to call this method or reload it for verification.

In addition, we have discussed whether there is a way to draw a picture on a page or control at a specified position or control?

Attachment: Image verification code control and demo

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.