Solved

format a listitem in asp.net

Posted on 2006-07-11
2
974 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now