Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

format a listitem in asp.net

Posted on 2006-07-11
2
Medium Priority
?
999 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

618 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