ASP. NET web verification code control [reprinted]

Source: Internet
Author: User
A found the custom web Verification Code provided by a netizen on the Internet. The result was very good, so I stole it ..
Source code : Webvalidates.rar

Step 1: select an item, reference the DLL (in the source Code ), and insert the Control Source Code
Step 2: call method Code

code highlighting produced by actipro codehighlighter (freeware)
http://www.CodeHighlighter.com/

--> protected void page_load ( Object sender, eventargs e)
{< br>
If ( ! ispostback)
{< br> serialnumber1.create ();
}< BR >}

Protected   Void Btnregister_click ( Object Sender, eventargs E)
{
If ( ! Serialnumber1.checksn (txtvalidator. Value ))
{
Common. Common. Show (page,
" Incorrect verification code! " );
Serialnumber1.create ();
}
Else
{
Common. Common. Show (page,
" The verification code is correct! " );
Serialnumber1.create ();
}
}

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.