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.
- Declare an <
asp:RadioButtonList > element on the page. For syntax, see RadioButtonList Control Syntax.
- Optionally set the RepeatDirection property to either Horizontal or Vertical ( default ).
- Optionally change the orientation of the caption by setting the TextAlign property to either Left or Right ( default ).
Setting Layout in a RadioButtonList ASP.NET Server
|