Solved

format a listitem in asp.net

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Connect Gridview column to Textbox in C# 2 54
Access-Control-Allow-Origin 4 41
asp.net mvc5 6 33
Why am I losing my session variable value 11 38
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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