C1SwitchButton is a control that allows users to choose between two states. By default, a switch button loads in the OFF position, but the button can be set to ON position by setting the Checked property to True.
The table below compares the ON and OFF states of the C1SwitchButton control.
Checked = True |
Checked = False |
|
|
The C1SwitchButton control is similar to the C1NavigationListSwitchItem item. For information on the C1NavigationListSwitchItem item, see the C1NavigationListSwitchItem Item topic. For task-based help concerning the C1SwitchButton control, see Using the C1SwitchButton Control.
C1SwitchButton States and Events
To make the C1SwitchButton control perform an action when the user switches the button state, you can either use the server-side CheckedChanged event or the client-side OnClientCheckedChanged event of the C1SwitchButton control.
The Checked property. The Checked property is a Boolean value, so you can use the value to determine whether or not the button is in the ON or OFF state.