Ajax toolkit Control Learning Series (13) -- filteredtextboxextender controls Input

Source: Internet
Author: User
    • This control is used to filter and control the content to be input by textbox. Filter according to your needs. You can customize them, or use the defined method.
    • See the results.

The effect is not very prominent. Note that only uppercase letters and numbers can be entered. Because of the restrictions, what advanced applications are there? Still to be studied.

    • Parameter description:

Filtertype: Optional values include custom, numbers, uppercaseletters, and lowercaseletters.

Targetcontrolid: ID of the control to be controlled

Validchars: The content defined here cannot be entered.

Filtermode: ivalidchars is used to control which types of letters cannot be entered.

In this example, only uppercase letters, numbers, and 12 numbers are allowed. I think this method can prevent injection attacks.

    • CodeRefer:
 Code 
< Div >
< ASP: scriptmanager ID = "SM" Runat = "Server" >
</ ASP: scriptmanager >
< ASP: updatepanel ID = "Updatepanel1" Runat = "Server" >
< Contenttemplate >
< ASP: textbox ID = "Textbox" Runat = "Server" > </ ASP: textbox >
< Ajax: filteredtextboxextender ID = "Tb_filter" Runat = "Server" Filtertype = "Numbers, uppercaseletters"
Targetcontrolid = "Textbox" Validchars = "12" filtermode = "invalidchars" >
</ Ajax: filteredtextboxextender >
</ Contenttemplate >
</ ASP: updatepanel >
</ Div >

 

 

I would like to dedicate this article to the old friend who just got a new job to go to the School Intranet. Congratulations.

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.