JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the RadioButton Class

The RadioButton class supports radio buttons. Here is the hierarchy of this class:

Object
   Control
      WebControl
         CheckBox
            RadioButton

You can find the notable public properties of RadioButton objects in Table 16.10, the notable methods in Table 16.11, and the notable public events in Table 16.12. Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes-you can find them in Chapter 15, Tables 15.1 to 15.5. This class also inherits from the CheckBox class-you'll find the CheckBox class's notable properties, methods, and events in Tables 16.1, 16.2, and 16.3.

Table 16.10: Noteworthy public properties of RadioButton objects.

Property

Means

GroupName

Gets/sets the radio button's group; the radio button will act in concert with other members of the group.

Text

Gets/sets the text caption for with the radio button.

Table 16.11: Noteworthy public methods of RadioButton objects.

Method

Means

Dispose

Disposes of the radio button.

Table 16.12: Noteworthy public events of RadioButton objects.

Event

Means

CheckedChanged

Occurs when the Checked property changes.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor