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