how to position a RadioButtonList after a TextBox

  • Thread starter Thread starter bjornvdneut
  • Start date Start date
B

bjornvdneut

Hello,

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem Text="test"></asp:ListItem>
<asp:ListItem Text="boe"></asp:ListItem>
</asp:RadioButtonList>

How do I get the radiobuttton's after the textbox? It keeps getting
below it?

Thanks
Bjorn
 
Hi Bjorn,

You can set the repeat layout to "Flow" but it still might not do what you
want:

<asp:textbox id="TextBox1" runat="server"></asp:textbox>
<asp:radiobuttonlist id="RadioButtonList1" runat="server"
repeatlayout="Flow">
<asp:listitem text="test"></asp:listitem>
<asp:listitem text="boe"></asp:listitem>
</asp:radiobuttonlist>
You may have to add a one-row table with the textbox in one column and the
radiobuttonlist in the other.

Ken
Microsoft MVP [ASP.NET]
 
Back
Top