System.Web.UI.Adapters.PageAdapter.RegisterRadioButton Method

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

Syntax

public virtual void RegisterRadioButton (System.Web.UI.WebControls.RadioButton radioButton)

Parameters

radioButton
The System.Web.UI.WebControls.RadioButton to add to the collection.

Remarks

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

Radio button control adapters use the PageAdapter.RegisterRadioButton(System.Web.UI.WebControls.RadioButton) and PageAdapter.GetRadioButtonsByGroup(string) methods to reference the other System.Web.UI.WebControls.RadioButton controls in a radio button group.

Requirements

Namespace: System.Web.UI.Adapters
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0