Home / AJAX

Ajax Control Toolkit MutuallyExclusiveCheckBox

Modified on 2010/04/16 00:48 by Stephen Walther Categorized as Uncategorized
MutuallyExclusiveCheckBox is an ASP.NET AJAX extender that can be attached to any ASP.NET CheckBox control. By adding a number of checkboxes to the same "Key", only one checkbox with the specified key can be checked at a time. This extender is useful when a number of choices are available but only one can be chosen, similar to a radio button. The use of checkboxes however allows you to choose to uncheck a value which is not possible normally with radio buttons. This also provides a more consistent and expected interface than using javascript to allow the de-selection of a RadioButton item.

MutuallyExclusiveCheckbox Server Properties

The properties in italics are optional.

<ajaxToolkit:MutuallyExclusiveCheckboxExtender runat="server"
    Key="GuestBedroomCheckBoxes" />

  • TargetControlID - The ID of the CheckBox to modify
  • Key - The unique key to use to associate checkboxes. This key does not respect INamingContainer renaming.