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): 32487/ 47

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

User Comments

Title: svfd   
Name: fgdfg
Date: 2012-12-12 7:36:25 AM
Comment:
egte
Title: hello   
Name: hello
Date: 2012-08-22 12:38:27 AM
Comment:
hello
Title: eeee   
Name: aaa
Date: 2012-08-08 2:21:21 AM
Comment:
jjjj
Title: dropdown list   
Name: Vrutti Shah
Date: 2011-11-23 4:47:12 AM
Comment:
I have two dropdown list. I get value of dropdownlist 1 from database. based on the selected value of dropdown 1, dropdown list 2 is populated. I have success in that but problem is that after select value from dropdown 1 page is load and data is lost from another tools like textbox(password type). pls do helpful.
my mail id is:vruttishah1986@gmail.com
Title: Useful information   
Name: pickatutorial.com
Date: 2010-10-05 11:30:12 AM
Comment:
Very useful article. Thanks.
Title: Reply: how to set data in text box based on ajax autocomple   
Name: Brian Mains
Date: 2010-03-11 3:22:38 PM
Comment:
Hello,

Auto complete has a client-side API; you would have to look to see an event that fires when the first text entry is selected, then set the value for textbox2.

HTH.
Title: how to set data in text box based on ajax autocomple   
Name: ieda
Date: 2010-03-10 4:04:46 AM
Comment:
i have two text box.Texbox1 and textbox2.Both use same table in database.Texbox1 use ajax extender autocomplete to select the data. What can i do if i want textbox2 set data aumatically from database after i select data for textbox1?
Title: Re:Button Extender   
Name: Brian
Date: 2008-10-06 3:08:21 AM
Comment:
I tested the code but i cannot achieve your test2 result.
Title: thanks   
Name: Karthikeyan
Date: 2008-09-24 7:54:24 AM
Comment:
Nice article.
Title: thanks   
Name: rezagolab
Date: 2008-09-24 3:10:50 AM
Comment:
hi
thanks
Title: Re:Button Extender   
Name: NamNguyenLe
Date: 2008-08-28 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-2024 ASPAlliance.com  |  Page Processed at 2024-03-29 2:00:53 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search