This documentation is archived and is not being maintained.

PageAdapter::RegisterRadioButton Method

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

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: