RadioButtonList as array with label
I'm struggling with how to get a radiobuttonlist next to a label field with the layout of the label, then the radio buttons. Whenever I create a RadioButtonList it automatically seems to drop to a newline and I do not see any label property for the RadioButtonList:
Gender 0 Female 0 Male
With the Gender being the label and the 0 represending the radio button. I am able to create the 0 Female 0 Male by utilizing the RepeatDirection="Horizontal" property but I do not see a property for label/text for the Gender field. I need the full line together, not on a new line.
<asp:RadioButtonList id="genderRadioButton" runat="server" RepeatDirection="Horizontal"
Height="26px" RepeatColumns="2">
<asp:ListItem Value="F">Female</asp:ListItem>
<asp:ListItem Value="M">Male</asp:ListItem>
</asp:RadioButtonList></P>
Thanks in advance, Marcy.
|