System.Web.UI.HtmlControls.HtmlInputRadioButton.Name Property

Gets or sets the name of the group that the instance of the System.Web.UI.HtmlControls.HtmlInputRadioButton class is associated with.

Syntax

public override string Name { set; get; }

Value

a string

Remarks

Group multiple System.Web.UI.HtmlControls.HtmlInputRadioButton controls by specifying a common value for the HtmlInputRadioButton.Name property of each radio button you want to include in the group. When you group System.Web.UI.HtmlControls.HtmlInputRadioButton controls, only one radio button in the group can be selected at a time. The HtmlInputRadioButton.Checked property of the selected control is set to true, while the same property is set to false for all other radio buttons in the group.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0