Archive / AJAX

RSS feed for this section

Line Breaks in ConfirmButtonExtender

I expected to type \n into the ConfirmText property of the AJAX Control Toolkit’s ConfirmButtonExtender and get a new line. This doesn’t work, but you can use this character code: 
 Specifically, ampersand pound ten semicolon.

Binding jQuery events to ASP.NET controls in an UpdatePanel

Controls inside an ASP.NET UpdatePanel cannot be bound to jQuery events after a partial postback. Here are some tips using pageLoad(): http://forums.asp.net/p/1189519/2039138.aspx http://encosia.com/simplify-aspnet-ajax-client-side-page-initialization/

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 […]