ASP.NET AJAX extenders are really functional; not only do
they use a managed JavaScript development approach; they spice up the UI like
Emeril in the kitchen. The following extender is an example of the ASP.NET AJAX
approach to developing extenders like the one in this example.
The extender we are going to build is an extender that
toggles the enabled status of a control based on the button clicks. The
extender maps to both a button and a receiver control; the receiver changes its
disabled status based on the clicks of the button. The first click disabled the
targeted control and the second click re-enables it. This trend continues on
for the life of the page. However, the extender also works in another mode.
Rather than solely targeting another control, the control
can simply target itself, disabling itself from clicking the button twice and
preventing double-clicks.