- 
                Notifications
    
You must be signed in to change notification settings  - Fork 144
 
TextBoxWatermark
TextBoxWatermarkExtender (demo)
TextBoxWatermark is an ASP.NET AJAX extender that can be attached to an ASP.NET TextBox control to get watermark behavior. When a watermarked TextBox is empty, it displays a message to a user with a custom CSS style. Once the user has typed text into the TextBox, the watermarked appearance disappears. The watermark is intended to provide more information to a user about the TextBox without cluttering up the rest of the page.
| Name | Description | 
|---|---|
| WatermarkCssClass | A CSS class to apply to the TextBox when it has no value (e.g. watermark text is shown)  | 
| WatermarkText | Text to show when the control has no value  | 
| Name | Description | 
|---|---|
| text | Text of the target TextBox  | 
| watermarkCssClass | A CSS class to apply to the TextBox when it has no value (e.g. watermark text is shown)  | 
| watermarkText | Text to show when the control has no value  | 
| Name | Description | 
|---|---|
| clearText(focusing) | Clears the text from the target  | 
| registerPropertyChanged() | A method to call to be assigned to Sys.Preview.UI.TextBox if any  | 
Text to show when the control has no value
Getter name: get_watermarkText()
Setter name: set_watermarkText(value)
A CSS class to apply to the TextBox when it has no value (e.g. watermark text is shown)
Getter name: get_watermarkCssClass()
Setter name: set_watermarkCssClass(value)
Text of the target TextBox
Getter name: get_text()
Setter name: set_text(value)
Clears the text from the target
Params:
- 
focusing
- Type: Boolean
 - Description: Whether or not we are focusing on the textbox
 
 
A method to call to be assigned to Sys.Preview.UI.TextBox if any
Remarks: This method must be called manually if Sys.Preview.UI.TextBox is added after TextBoxWatermarkBehavior is initialized
This content was moved from https://ajaxcontroltoolkit.codeplex.com/documentation to this Documentation wiki. This is now the authoritative location of the AJAX Control Toolkit documentation.
- Step-by-Step Installation Guide
 - Upgrading from v7.x and below
 - Uninstalling the AJAX Control Toolkit
 - Troubleshooting Installer Issues
 - Updating the Project from CI Builds
 
- How to Use Bundling and CDN
 - Creating a Custom Localization
 - Creating a Custom Control
 - Design Standards
 
Controls:
- Accordion
 - AjaxFileUpload
 - AreaChart
 - AsyncFileUpload
 - BarChart
 - BubbleChart
 - ComboBox
 - Editor (deprecated)
 - Gravatar
 - LineChart
 - NoBot
 - PieChart
 - Rating
 - ReorderList
 - Seadragon
 - TabContainer
 - TabPanel
 
Extenders:
- AlwaysVisibleControl
 - Animation
 - AutoComplete
 - BalloonPopup
 - Calendar
 - CascadingDropDown
 - CollapsiblePanel
 - ColorPicker
 - ConfirmButton
 - DragPanel
 - DropDown
 - DropShadow
 - DynamicPopulate
 - FilteredTextBox
 - HoverMenu
 - HtmlEditor
 - ListSearch
 - MaskedEdit
 - MaskedEditValidator
 - ModalPopup
 - MultiHandleSlider
 - MutuallyExclusiveCheckBox
 - NumericUpDown
 - PagingBulletedList
 - PasswordStrength
 - PopupControl
 - ResizableControl
 - RoundedCorners
 - Slider
 - SlideShow
 - TextBoxWatermark
 - ToggleButton
 - UpdatePanelAnimation
 - ValidatorCallout