The TextBoxWatermark extender control of ASP.Net 2.0 AJAX control toolkit is attached to the Textbox server control of ASP.Net. TextboxWatermark extender control is managed by CSS styles to display the watermarked message inside the Textbox control. TextBoxWatermark control allows you to display the Hint inside the user input fields i.e. Textbox that disappears as soon as the user sets focus into the Textbox. You can pass the Hint Text that you want to display inside the Textbox control. TexboxWatermark extender control is very easy to use due to its very few properties to provide the desired functionality.
TargetControlID: ID of Textbox control in which watermarked text will appear.
WatermarkText: Text that will appear inside the associated Textbox control.
WatermarkCssClass: CSS class name that will adjust the style, look and feel of watermarked Textbox.
CSS Class:
.no_watermark { border:solid 1px #cccccc; }
.watermark { color:#999999; background-color:#eeeeee; border:solid 1px #cccccc; }
HTML code:
Be the first to rate this post
Tags: asp.net 2.0, ajax, ajax textboxwatermark control, asp.net ajax control toolkit, download ajax control toolkit, textboxwatermark extender, alwaysvisiblecontrol extender
8/23/2008 8:46:01 PM