System.Web.UI.HtmlControls.HtmlInputRadioButton.Value Property

Gets or sets the value associated with the System.Web.UI.HtmlControls.HtmlInputRadioButton control.

Syntax

public override string Value { set; get; }

Value

a string

Remarks

Use the HtmlInputRadioButton.Value property to specify or determine the value associated with the System.Web.UI.HtmlControls.HtmlInputRadioButton control. The value can be any valid string that you want to associate with the control. This is useful when you have multiple radio buttons and need to perform a calculation based on the selection. For example, you can have radio buttons that represent different shipping methods. You can store the shipping cost in the HtmlInputRadioButton.Value property. When the user selects the shipping method, the appropriate shipping amount can be determined from this property and added to the sales total.

Requirements

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