asp.net.ph

Skip Navigation Links

RadioButtonList Control Syntax

ASP.NET Syntax   ASP.NET Syntax for Web Controls


Creates a group of radio buttons that can be dynamically generated by binding to a data source.

Declarative Syntax

For information on the individual members of this class, see RadioButtonList in the class library.

Remarks

The RadioButtonList control renders a single-selection radio button group that can be dynamically generated by binding to a data source. It contains an Items collection with members that correspond to individual items on the list. To determine which item is selected, test the SelectedItem property of the list.

You can specify the rendering of the list with the RepeatLayout and RepeatDirection properties. If RepeatLayout is set to RepeatLayout.Table ( the default setting ), the list will be rendered within a table. If it is set to RepeatLayout.Flow, the list will be rendered without any tabular structure. By default, RepeatDirection is set to RepeatDirection.Vertical. Setting this property to RepeatDirection.Horizontal will render the list horizontally.

NOTE: You can also use the RadioButton control. The RadioButtonList control is easier for creating a set of radio buttons using data binding, while an individual RadioButton control gives you greater control over layout.

See Also

RadioButtonList Class   RadioButton and RadioButtonlist Web Server Controls



© 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