Ajax Control Toolkit -- filteredtextboxextender (text filtering)

Source: Internet
Author: User

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.

 

Related Article

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.