ajaxcontroltoolkit Filteredtextboxextender Simple Use _ Practical skills

Source: Internet
Author: User
Tags regular expression
Validation controls are useful if the information entered does not conform to the user-related prompts, the advantage of this text filtering control is the opportunity to directly not give the user an error message

Some properties of Filteredtextboxextender:
1, TargetControlID: Used to set the text box to be controlled.
2, FilterType: Set the filter type, provide the following four kinds:
Custom: If you choose this option, you can customize the characters that are not filtered in another attribute
Numbers: Lets the associated text box enter only numbers.
Uppercaseletters: Let the associated text box enter only uppercase letters.
Lowercaseletters: Lets the associated text box enter only lowercase letters.
3,validchars: Used to set a valid character when the FilterType is set to custom.
For example: only when you want to enter a number, you can set the value of FilterType: 1234567890
More convenient than their own filtering, but the limitations are obvious, too not free, hope that the next version is more powerful can be added such as regular expression validation of the property, you can more easily verify more content, it seems I am too lazy, very dependent on others to write good things,
The specific use of the method will not be written: here only the point of the key code:
<asp:textbox id= "TextBox4" runat= "Server" width= "378px" ></asp:textbox><br/>
<cc1:filteredtextboxextender id= "FilteredTextBoxExtender1" runat= "Server" targetcontrolid= "TextBox4"
Validchars= "012345689." ><!--I set the value of the validchars here, the value can enter the number and point, the purpose is to limit the input decimal point and number, back to their own digital verification, it is very convenient to achieve the verification of the number-->
Have the opportunity to study more, extension point more attributes, but for a just into the programmer, the road is long ...
I hope this day will come soon. Come on ~ ~
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: 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.