Google Search

Google
 

Sunday, July 13, 2008

Video: How Do I: Use the ASP.NET AJAX MutuallyExclusive Checkbox Extender?

Presenter:Joe Stagner

The MutuallyExclusive control from the ASP.NET AJAX Control Toolkit enables the developer to configure a number of check boxes as mutually exclusive, which ensures the user may only check a single option. While a radio-button list provides similar behavior, the need for a check box to be clicked by the user makes the MutuallyExclusive control ideal for receiving confirmation from the user, such as accepting or not accepting terms of use.

The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video


Minute 0

In the studio or demonstrate using mutually exclusive checkbox extender that ships as part of Microsoft Ajax control token checkboxes at General using a user interface to allow the user to select some input value but only in a nature so for example the checkboxes on you can send me e mail if it checkboxes off you can t send e mail but sometimes verbally and conditions are quite so apparent so when the heat when the Boolean values are yesterday worked for faults but an either or Eisner semiweekly updates or send me monthly updates as a strictly speaking it true or false value it s a one or the other so the mutually exclusive at checkbox extender is a great way to provide that sort of user input to user so lets us as always by creating an ex of Ajax enabled website and listen to do is grab

Minute 1

Up an instance of my standard stylesheet to use in these demos and create a reference to it in my page so popular design mode and I m just going to start out by a center justifying and a good inserted table okay now so let s about what s countries are good example here of a of age for Cicero select set up a mutual Susa checkbox is one says the persons over 35 years of age and says the person is not over 35 years of age spots

Minute 2

Pay a who satisfies or sells little bit here to okay with Novo got a checkbox for each of these rockets in our top and or code where we can start to the start to configure the checkbox extenders misunderstood just got an extra from an extra row in the table or not go neither of them are still used correctly my dyslexia rearing its

Minute 3

It okay to exit what I do is forgive you the check boxes themselves are going to add the extenders to be working with so if I go down to my HS control toolkit and for the selection and mutually exclusive to Xbox system that is already reference to the extender in our own to the existential tokens are in our bin directory to discriminate or these know you can now back in source mode and start to to the configuration and on the change these change the names here so let s change the names of these extenders to be something a little bitconservative

Minute 4

Sold for is over 35 extender and is not over 35 extender in every cleaned up are a prior single screen display will do to my now down to her checkboxes SecurID is over 35 them and prevent at a text section and in in

Minute 5

Down here the checkbox is not is not over 35 and will also at another tech section and in no distinctive wire up the extender so the first admitted his is for the change to XML formatting to be a little bit more conducive to our needs so first they do is specify what the target control ideas can be and in our case the target controlling he is going to be is over 35 has a

Minute 6

Does the checkbox or extend the other thing that s important is we need to add a key value and the key value is necessary so that how we can define two checkboxes that both use the same key so that the extenders can tell which other object of this one should be mutually exclusive from so we do the same thing here in our second extender so target control ID which is is not over 35 and then our key value which will be the same as the previous key value that we used in the other checkbox

Minute 7

Just supper formatting here sonorously hidden runner application as it stands is so here are two selections I d choose one know which is the other one noticed that I can t select both at the same time they re mutually exclusive now using two values in this case but let s also note that for what do I can use more than to write so well checkboxes generally have a represent a Boolean selection of mutually exclusive checkboxes can be used to select multiple of a door to select between multiple values of example is over 35 which change this to be an

Minute 8

At sea is over 25 25 25 to over 25 years of age name overthink this 35 and over 45

Minute 9

Then let s change the key could be something that some more appropriate obsessing over 45 which is called will make a key age choice and religious is announced at having to checkboxes that are mute part of the mutually inclusive collection that have three choices are part of the mutually exclusive collection so it s are you over 25 are you over 35 are you over 45 and now it s just change the table headers and will be good to run them over 25 years of age and over 35 years of age of over 45 years of age unfortunately my category not a

Minute 10

Is no cell that more than just a bully and selection we can choose only one of the three checkboxes are available so this is a great way to use the checkbox control but extended to provide a more meaningful user input choices for user thereby streamlining how you design a user interface in terms of having to be the having the appropriate values be self evident and reducing the amount of her only as input to get sent back to the server and that s it it s that easy to at some slippery user for input functionality to your ASP net interface using the midgets mutually exclusive to Xbox extender that ships as part of the Microsoft Ajax control to look at

Click here to go to original video page

No comments: