Allows programmatic access to the HTML <input type=radio
> element on the server.
The HtmlInputRadioButton control <input type=radio...runat="server"
> renders a radio button control that allows the user to switch between a true or false state.
When a user clicks the radio button, the control’s Checked attribute is set to true. The Checked property can also be set declaratively at design time, or dynamically thru script.
Like checkboxes, several radio buttons in a form may share the same control name, but behave differently: when one is switched on, all others with the same name are switched off.
Only one radio button in each group may be selected at any given time. Only the selected radio button in the group generates a name/value pair in the submitted data.
The following sample illustrates using the HtmlInputRadioButton control.
HtmlInputRadioButton Control Syntax RadioButton and RadioButtonList Controls HTML INPUT Element