AJAX Extender Example: Button Enabled Changes
page 1 of 7
Published: 13 Aug 2008
Abstract
This article illustrates an example of an extender that changes the enabled status of another control when the button is clicked. The author provides a detailed introduction to AJAX Control Toolkit and delves into the creation of the server extender and also that of client side component with the help of detailed code samples. At the end of the article he examines the concept of Custom Extenders in ASP.NET development.
by Brian Mains
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 9826/ 184

Introduction

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.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 6 and 7 and type the answer here:

User Comments

Title: Re:Button Extender   
Name: Brian
Date: 10/6/2008 3:08:21 AM
Comment:
I tested the code but i cannot achieve your test2 result.
Title: thanks   
Name: Karthikeyan
Date: 9/24/2008 7:54:24 AM
Comment:
Nice article.
Title: thanks   
Name: rezagolab
Date: 9/24/2008 3:10:50 AM
Comment:
hi
thanks
Title: Re:Button Extender   
Name: NamNguyenLe
Date: 8/28/2008 10:15:30 PM
Comment:
Thanks for cool article.
But it will be better if code is avaiable.
Please post it please.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 1/7/2009 9:07:32 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search