The. NET Framework trained over the past two days gives me a better understanding of Microsoft. In the past, we thought that Ms was a drag-and-drop feature, and there was no other surprising feature. Today, after introducing ASP Ajax toolkit, it is really amazing.
For example, to add a textbox with two numbers, the Association function is required to list all databases or web services with the two numbers in the header. You can use only one sentence in ASP. NET.
<Ajaxtoolkit: autocompleteextender
Id = "autocompleteextender1"
Targetcontrolid = "zipcode"
Servicepath = "zipcodeservice. asmx"
Servicemethod = "getmatchingzipcodes"
Minimumprefixlength = "2"
Completionlistelementid = "ctl00_mainplaceholder_zipcodecomp
Letionlist"
Completionsetcount = "15" runat = "server"/>
This is too simple. It would be too much trouble to do it in J2EE, but it is much easier to do with DWR and other Ajax frameworks built on J2EE.
For another example, a zipcode prompts five numbers. First, filter and retain only numbers and -. In other words, the telephone number should also be like this:
<Ajaxtoolkit: filteredtextboxextender
Id = "filtertextboxextender1"
Targetcontrolid = "zipcode" filtertype = "Custom"
Validchars = "0123456789 -"
Runat = "server"/>
<Ajaxtoolkit: filteredtextboxextender
Id = "filtertextboxextender2"
Targetcontrolid = "phone" filtertype = "Custom"
Validchars = "0123456789 ()-."
Runat = "server"/>
Then, the system prompts you to enter 5 numbers.
<Ajaxtoolkit: textboxwatermarkextender
Id = "textboxwatermarkextender1"
Targetcontrolid = "zipcode" watermarktext = "XXXXX"
Runat = "server"/>
<Ajaxtoolkit: textboxwatermarkextender
Id = "textboxwatermarkextender2"
Targetcontrolid = "phone" watermarktext = "XXX-xxx-XXXX"
Runat = "server"/>
The result is as follows: