HtmlInputRadioButton.Name Property

Gets or sets the name of the group that the instance of the HtmlInputRadioButton class is associated with.

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in system.web.dll)

public:
virtual property String^ Name {
	String^ get () override;
	void set (String^ value) override;
}
/** @property */
public String get_Name ()

/** @property */
public void set_Name (String value)

public override function get Name () : String

public override function set Name (value : String)

Property Value

The group of check box controls that the instance of the HtmlInputRadioButton class is a member of.

Group multiple HtmlInputRadioButton controls by specifying a common value for the Name property of each radio button you want to include in the group. When you group HtmlInputRadioButton controls, only one radio button in the group can be selected at a time. The 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.

The following code example demonstrates how to use the Name property to group multiple HtmlInputRadioButton controls.

No code example is currently available or this language may not be supported.

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

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

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show: