Link to home
Start Free TrialLog in
Avatar of running32
running32

asked on

format a listitem in asp.net

Cannot get my Radio button list next to my text box.  How can I make it so that the list box stays on the same line as the text box?

Thanks


      <TR>
       <TD style="WIDTH: 89px; HEIGHT: 40px" vAlign="top"><FONT face="Arial" size="2">Time</FONT>
        <TD style="HEIGHT: 40px"><FONT face="Arial" size="2">
         <P><asp:textbox id="TextBox1" runat="server" Width="95px" Wrap="False"></asp:textbox><BR>
            <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" Font-Size="X-Small" Font-Names="Arial"
             ErrorMessage="Please enter Time" ControlToValidate="TextBox1"></asp:requiredfieldvalidator><asp:radiobuttonlist id="RadioButtonList1" runat="server" Width="32px" Font-Size="Smaller" Font-Names="Arial"
             RepeatDirection="Horizontal" TextAlign="Left" Height="10px">
            <asp:ListItem Value="AM">AM</asp:ListItem>
            <asp:ListItem Value="PM">PM</asp:ListItem>
             </asp:radiobuttonlist><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" Font-Size="X-Small" Font-Names="Arial"
              ErrorMessage="Please select AM or PM" ControlToValidate="RadioButtonList1"></asp:requiredfieldvalidator><BR>
          </P>
          </FONT>
         </TD>
       </TD>
        </TR>
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of running32
running32

ASKER

I still cannot get the text a radio button to show up on the same line.  Thanks



      <P><asp:textbox id="TextBox1" runat="server" Width="95px" Wrap="False"></asp:textbox><asp:radiobuttonlist id="RadioButtonList1" runat="server" Width="80px" Font-Size="Smaller" Font-Names="Arial"
      RepeatDirection="Horizontal" TextAlign="Left" Height="10px">
      <asp:ListItem Value="AM">AM</asp:ListItem>
      <asp:ListItem Value="PM">PM</asp:ListItem>
      </asp:radiobuttonlist><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" Font-Size="X-Small" Font-Names="Arial"
      ErrorMessage="Please select AM or PM" ControlToValidate="RadioButtonList1"></asp:requiredfieldvalidator>
      <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" Font-Size="X-Small" Font-Names="Arial"
      ErrorMessage="Please enter Time" ControlToValidate="TextBox1"></asp:requiredfieldvalidator><BR>
      </P>