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
)
public void RegisterRadioButton (
	RadioButton radioButton
)
public function RegisterRadioButton (
	radioButton : RadioButton
)
Not applicable.

Parameters

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: