PageAdapter::RegisterRadioButton Method (RadioButton^)

 

Adds a radio button control to the collection for a specified radio button group.

Namespace:   System.Web.UI.Adapters
Assembly:  System.Web (in System.Web.dll)

public:
virtual void RegisterRadioButton(
	RadioButton^ radioButton
)

Parameters

radioButton
Type: System.Web.UI.WebControls::RadioButton^

The RadioButton to add to the collection.

The PageAdapter class uses a ListDictionary object to maintain a list of radio button groups. Each element in ListDictionary is a collection of the RadioButton controls in a radio button group. The RegisterRadioButton method adds a RadioButton control to the appropriate collection, creating the collection if it does not already exist, and creating ListDictionary if there are no previously registered RadioButton controls.

Radio button control adapters use the RegisterRadioButton and GetRadioButtonsByGroup methods to reference the other RadioButton controls in a radio button group.

.NET Framework
Available since 2.0
Return to top
Show: