asp.net.ph

Skip Navigation Links

Adding RadioButtonList Controls to a Web Forms Page

Controls You Can Use on Web Forms   ASP.NET Standard Controls   RadioButton and RadioButtonList Controls


When you use a RadioButtonList control, you add a single control to the page. Adding items to the control is a separate process that depends on whether you will display a static list in the control or a list generated dynamically at run time. For details, see Adding Items in a List Control.

NOTE: The procedure for working with individual RadioButton Web server controls is different. For details, see Adding Individual RadioButton Controls to a Web Forms Page.

To add a RadioButtonList control to a Web Forms page

  1. Declare an <asp:RadioButtonList> element on the page. For syntax, see RadioButtonList Control Syntax.
  2. Optionally set the RepeatDirection property to either Horizontal or Vertical ( default ).
  3. Optionally change the orientation of the caption by setting the TextAlign property to either Left or Right ( default ).
RadioButtonList1.aspx
Run Sample | View Source
See Also

Setting Layout in a RadioButtonList ASP.NET Server



© 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