Archive / AJAX

RSS feed for this section

Setting WatermarkText in JavaScript

To set the Watermark Text of a TextBoxWatermarkExtender in the AJAX Control Toolkit, use the following code: var behavior = $find(‘<%= TextBoxWatermarkExtender1.ClientID %>’); behavior.clearText();behavior.set_Text(‘Hello World!’); behavior.initialize(); It took me a while to find that I needed to call the Initialize() function before the Watermark Text would get updated. Update September 25, 2012 It appears that […]

ASP.Net AJAX Animations

Some of the best resources for the animation framework that comes with the ASP.Net AJAX Control Toolkit can be found at the live toolkit site at this Sample Site. I often look at the Animation Reference section of this site. While adding animations to ASP.Net pages, it is sometimes necessary to call animations directly from Javascript […]