asp.net.ph

Skip Navigation LinksHome > ASP.NET Web Forms > Web Forms Server Controls > Controls You Can Use on Web Forms > ASP.NET HTML WebControls

ASP.NET HTML Controls

  Section Index


HtmlInputRadioButton Server Control

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 Example
Run Sample | View Source
See Also

HtmlInputRadioButton Control Syntax   RadioButton and RadioButtonList Controls   HTML INPUT Element

More ...
Back to top


© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note