Ajax Filtered TextBox Extender

Blog Author

Tekslate

Published Date

20th September, 2018

Ratings

Views

266

  • Share this blog :

Filtered TextBox Extender

This control is used to filter the characters allowed into the textbox. TargetControlID : FilterType : Used to specify which type of filter to apply for the target control . It has 4 possible values. custom lowercase letters numbers Uppercase letters   Filtermode : Used to specify the mode to specify to filter the characters allowed in to the target control, and it has two possible values. ValidChars : Used to specify the characters to allow into the textbox when filter mode is set to valid chars. Invalid chars : When filtermode property is set, to invalid chars then use this property to specify the list of characters that you don’t want to allow into the target control. Example The following example uses filtered text box extender to allow any character other than uppercase characters into a text box. Add a page to the website and then take a Toolkit script manager and a textbox on the page, set ID of that textbox as T1 Within HTML source of the page drag & drop a filter textbox extender and set following properties for it. <asp:filteredTextBoxExtender ID=”Filtered TextBox Extender1” runat=”server” TargetControlID=”T1” filterMode=”InvalidChars” Invalidchars=”ABCDEFGHIJKLMNOPQRSTUVWXYZ”> </asp:filteredTextBoxExtender> HTML EDITOR Extender: HTML editor extender is used to extend a textbox and aloe the user to edit the text in textbox .Similar to the editor provided to type the email message while sending email. It has the property ‘Toolbar’ to specify which buttons you want with in the Toolbar of HTML editor Extender. Example The following example makes a textbox as editor as textbox as an editor by using Html editor Extender. Add a page to the website , take a toolkit script manager on it along with a textbox and set ID of the textbox as T1. With in HTML source of the page drag and drop HTML editorExtender and set following properties to it <asp: HTMLEditor Extender ID=”HTML editor Extender runat =”sever” TargetcontrolID =”T1” Enable sanitization=”false”> <Toolbar> <asp:Bold/> <asp:Italic/> <asp:UnderLine/> <asp:cut/> <asp:copy/> <asp:paste/> </Toolbar> </asp:HTML EditorExtender>

About Author
Authorlogo
Name

TekSlate

Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills .

Related Blogs

Write For Us