Simple Example of JS date + freetextbox + serialnumber

Source: Internet
Author: User

1. Use of freetextbox and serialnumber
1. Right-click the website project --> click Add reference (Select Browse --> Find the downloaded class library freetextbox. dll and webvalidates. dll)
2. Add freetextbox. dll and webvalidates. DLL to the toolbar (toolbar> General (right-click)> select item> browse to DLL file, add)
3. Drag the control from the toolbar to the page.
2. js date (my97 date control)
1. In the <Script language = "JavaScript" type = "text/JavaScript" src ="JS/my97datepicker/wdatepicker. js"> </SCRIPT>
2. AddClass = "wdate" onfocus = "New wdatepicker (this, null, false, 'whygreen '),For example, in the text box <asp: textbox id = "textbox1" runat = "server" class = "wdate" onfocus = "New wdatepicker (this, null, false, 'whygreen ') "> </ASP: textbox>
3. Background of serialnumber VerificationCode

Verification Code background code
Protected   Void Page_load ( Object Sender, eventargs E)
{
If ( ! Page. ispostback)
{
Serialnumber_site.create ();
}
}

Protected VoidBtnrefresh_click (ObjectSender, eventargs E)
{
Serialnumber_site.create ();
}

Protected   Void Btnsubmit_click ( Object Sender, eventargs E)
{
If (Serialnumber_site.checksn (txtvalidate. Text ))
{
Lblmessage. Text = Txtdatetime. text;
Lblmessage. Text + = Freetextbox_site.text;
}
}

4. The following figure shows the design interface and running (no style is edited to see the effect)

5. Code: (date + verification code + response box, there are examples of datalist and repeater) http://www.namipan.com/downfile/DataList_Repeater_riqi.rar/8fce9b8fa6990e68bf211ef5eb88cacec8bacbcc10761c00

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.