MutuallyExlcusiveCheckBox Demonstration
Must Have







Must Not Have







MutuallyExclusiveCheckBox Description

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 deselection of a radiobutton item.

MutuallyExclusiveCheckBox Properties

The control above is initialized with this code. The italic properties are optional:

<ajaxToolkit:MutuallyExclusiveCheckboxExtender runat="server"
    ID="MustHaveGuestBedroomCheckBoxEx"
    TargetControlID="MustHaveGuestBedroomCheckBox" 
    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.
Copyright © 2006 Microsoft Corporation. All Rights Reserved.