ASP.NET Control Extenders
ASP.NET Control Extenders - used to Enhances the capabilities of the Standard ASP.Net Controls.
Used with Textbox, Button and Panel control will give the richer user experience in browser.
Ajax Extender controls are found in Ajax Control Toolkit. It is all about ASP.NET Control Extenders.
Overview on ASP.NET Control Extenders
Overview
1. Enhances the capabilities of the Standard ASP.Net Controls.
2. Used with Textbox, Button and Panel control will give the richer user experience in browser.
3. Ajax Extender controls are found in Ajax Control Toolkit.
4. It is not part of Visual Studio [It is seperate DLL file, when it Added to Visual Studio the Extender Controls appears in Toolbox].
5. ScriptManager is Required to work with Extender Control.
6. There are 40 Extender Controls are available
7. Visual Studio supports the following Extender Features
a.Adding extender controls.
b.Removing extender controls.
c.Setting extender control properties.
d.Managing extender controls.How to Add Extender Control
Method 1: Drag the Extender Control to Web Control.
[Note: Extender Control is not visible in the Design Mode].
Method 2: Right-click the Web server control and then click Add Extender.List of Extender Controls
1.AutoComplete
2.Calendar
3.CascadingDropDown
4.ConfirmButton
5.MaskedEdit
6.ModalPopup
7.NumericUpDown
8.PasswordStrength
9.TextBoxWatermarkExamples
1. TextBoxWatermark Control
<asp:TextBox ID="TextBox1" runat="server" Height="28px" Width="258px"></asp:TextBox>
<asp:TextBoxWatermarkExtender ID="TextBox1_TextBoxWatermarkExtender"
runat="server" Enabled="True" TargetControlID="TextBox1"
WatermarkText="Type Your Name Here?">
</asp:TextBoxWatermarkExtender>
2. Calendar Control
<asp:TextBox ID="TextBox2" runat="server">
</asp:TextBox>
<asp:CalendarExtender ID="TextBox2_CalendarExtender" runat="server"
Enabled="True" TargetControlID="TextBox2">
</asp:CalendarExtender>
3. Masked Field Control
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<asp:MaskedEditExtender ID="TextBox3_MaskedEditExtender" runat="server"
CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder=""
CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"
Mask="9,99,999.99" MaskType="Number" TargetControlID="TextBox3"
UserTimeFormat="TwentyFourHour">
</asp:MaskedEditExtender>
4. Password Strength Checking
<asp:TextBox ID="TextBox6" runat="server" TextMode="Password"></asp:TextBox>
<asp:PasswordStrength ID="TextBox6_PasswordStrength" runat="server"
Enabled="True" TargetControlID="TextBox6">
</asp:PasswordStrength>