Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

How to: Add RadioButtonList Web Server Controls to a Web Forms Page (Visual Studio)

You can add a radio button to a Web Forms page in two ways:

For details about the differences between these approaches, see RadioButton and RadioButtonList Web Server Controls Overview.

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.

To add a RadioButtonList Web server control to a Web Forms page

  1. From the Standard tab of the Toolbox, drag a RadioButtonList control onto the page.

  2. Optionally, in the Properties window, change the orientation of the caption by setting the TextAlign property.

  3. Optionally, change the layout of the control to display multiple columns. For details, see How to: Set Layout in a RadioButtonList Web Server Control.

  4. Create items for the control in one of the following ways:

See Also

Community Additions

© 2015 Microsoft