Solved

format a listitem in asp.net

Posted on 2006-07-11
2
978 Views
Last Modified: 2012-05-05
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>
0
Comment
Question by:running32
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
ID: 17082129
Hi running32,

        <P><asp:textbox id="TextBox1" runat="server" Width="95px" Wrap="False"></asp:textbox><BR>
The <BR> there is going to force it to the next line, take this out.

Tim Cottee
0
 

Author Comment

by:running32
ID: 17082230
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>
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question