Filtertextboxextender
Targetcontrolid- Textbox ID for text filtering
Filtertype-Filtering type, numbers, lowercaseletters (lower case), upcaselettes (upper case) and custom (default)
Filtermode-Validchars (default) and invalidchars (this attribute does not exist in earlier versions). When any value is set, filtertype must be custom, that is to say, filtertype can be set to two types at the same time (custom and any one of them). For details, see the example.
Validchars-Valid character, which must contain custom in filtermode
Invalidchars-Invalid character, which must contain m in flitermode
Filterinterval-the default is 250 ms
More information of filtertextboxextender
Demo >>>
1 < ASP: scriptmanager ID = "Scriptmanager1" Runat = "Server" />
2 < Div >
3 < Ajaxtoolkit: filteredtextboxextender ID = "Filteredtextboxextender1" Runat = "Server"
4 Targetcontrolid = "Textbox1" Filtertype = "Numbers" Clientidmode = "Inherit" >
5 </ Ajaxtoolkit: filteredtextboxextender >
6 < Ajaxtoolkit: filteredtextboxextender ID = "Filteredtextboxextender2" Runat = "Server"
7 Targetcontrolid = "Textbox2" Filtertype = "Lowercaseletters" >
8 </ Ajaxtoolkit: filteredtextboxextender >
9 < Ajaxtoolkit: filteredtextboxextender ID = "Filteredtextboxextender3" Runat = "Server"
10 Targetcontrolid = "Textbox3" Filtertype = "Custom, numbers" Validchars = "+-= /*()." >
11 </ Ajaxtoolkit: filteredtextboxextender >
12 < Table Border = "0" >
13 < Tr >
14 < TD >
15 Only digits are allowed here:
16 </ TD >
17 < TD >
18 < ASP: textbox ID = "Textbox1" Runat = "Server" >
19 </ ASP: textbox >
20 </ TD >
21 </ Tr >
22 < Tr >
23 < TD >
24 Only lower-case letters are allowed here:
25 </ TD >
26 < TD >
27 < ASP: textbox ID = "Textbox2" Runat = "Server" >
28 </ ASP: textbox >
29 </ TD >
30 </ Tr >
31 < Tr >
32 < TD >
33 Only Math symbols (+,-, *,/, =,.) and numbers:
34 </ TD >
35 < TD >
36 < ASP: textbox ID = "Textbox3" Runat = "Server" > </ ASP: textbox >
37 </ TD >
38 </ Tr >
39 </ Table >
Additionally, we want to add that the control is different from the verification control. If the content does not match, it cannot be entered.