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:
< 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

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

11.11 Big Sale for Cloud

Get Unbeatable Offers with up to 90% Off,Oct.24-Nov.13 (UTC+8)

Get It Now >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.