Search code examples
asp.netradiobuttonlist

How can I make my RadioButtonList show up stacked vertically?


I have a RadioButtonList on my .aspx page and I load it in the codebehind.

How can I have it show vertically?


Solution

  • Change the RepeatDirection to Vertical. You might also want to look at using RepeatLayout=Flow if you have problems getting it to render the way you want. Often, I'll use RepeatLayout=Flow and assign a CssClass to handle styling.