Pregunta

I am using a Radio Button List in my app with 2 options. In the page, it is displayed in 2 different lines(one below the other). Can we display it in a single line?

¿Fue útil?

Solución

Just set RepeatDirection property to of the radiobuttonlist' to"Horizontal"`

<asp:RadioButtonList RepeatDirection="Horizontal " runat="server">
Some Content
</asp:RadioButtonList > 

By default, RepeatDirection is set to Vertical. Setting this property to Horizontal will render the list horizontally.

MSDN Refrence

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top