This two-day training of the. Net framework gives me a better understanding of what Microsoft is doing. I used to think that the thing about MS was drag and drop, and there was no other feature that was more surprising. Today, the introduction of ASP AJAX Toolkit, it is really surprising.
To give some simple examples, for example, to add one such effect, a TextBox input 2 numbers, to have the associative function of all databases or Web service on the list of these two numbers. Only one sentence is allowed in ASP.
<ajaxtoolkit:autocompleteextender
Id= "AutoCompleteExtender1"
Targetcontrolid= "ZipCode"
Servicepath= "Zipcodeservice.asmx"
Servicemethod= "Getmatchingzipcodes"
Minimumprefixlength= "2"
Completionlistelementid= "Ctl00_mainplaceholder_zipcodecomp
Letionlist "
Completionsetcount= "runat=" "Server"/>
It's too easy, but it's much more troublesome to do it in the Java EE, but it's much easier to do it with the AJAX framework built on the Java EE like dwr.
Again, for example, a zipcode should be prompted to enter a 5-digit number. The first thing to filter, just keep the numbers and-. Another sentence, the phone number should be the same:
<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 you are prompted to enter a 5 number
<ajaxtoolkit:textboxwatermarkextender
Id= "TextBoxWatermarkExtender1"
Targetcontrolid= "ZipCode" watermarktext= "xxxxx"
runat= "Server"/>
<ajaxtoolkit:textboxwatermarkextender
Id= "TextBoxWatermarkExtender2"
Targetcontrolid= "Phone" watermarktext= "xxx-xxx-xxxx"
runat= "Server"/>
That's what it shows.