DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 3 Aug 2007 17:48:01 -0400,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    dancer
          2    Alexey Smirnov
          3    Alexey Smirnov
                 4    dancer


RadioButtonList   
How can I get the buttons to appear on the same line as the question?  No 
matter what I do buttons appear on the NEXT line.

Are you at least 18 years of age?
                  <asp:RadioButtonList id="Eighteen" 
RepeatDirection="horizontal" Runat=server>
                    <asp:ListItem><font face="Verdana" 
Size="2">Yes</asp:ListItem>
                    <asp:ListItem><font face="Verdana" 
Size="2">No</asp:ListItem> </asp:RadioButtonList><br>
Date:Fri, 3 Aug 2007 17:48:01 -0400   Author:  

Re: RadioButtonList   
On Aug 3, 11:48 pm, "dancer"  wrote:

> How can I get the buttons to appear on the same line as the question?  No
> matter what I do buttons appear on the NEXT line.
>
> Are you at least 18 years of age?
>                   <asp:RadioButtonList id="Eighteen"
> RepeatDirection="horizontal" Runat=server>
>                     <asp:ListItem><font face="Verdana"
> Size="2">Yes</asp:ListItem>
>                     <asp:ListItem><font face="Verdana"
> Size="2">No</asp:ListItem> </asp:RadioButtonList><br>


you can add your code to a table

<table>
<tr>
<td>
Are you at least 18 years of age?
</td>
<td>
<asp:RadioButtonList id="Eighteen"
RepeatDirection="horizontal" Runat=server>
                    <asp:ListItem><font face="Verdana"
Size="2">Yes</asp:ListItem>
                    <asp:ListItem><font face="Verdana"
Size="2">No</asp:ListItem> </asp:RadioButtonList>
</td>
</table>

The control is created in <DIV> and it makes a new line by default
Date:Fri, 03 Aug 2007 15:28:58 -0700   Author:  

Re: RadioButtonList   
On Aug 4, 12:28 am, Alexey Smirnov  wrote:

> On Aug 3, 11:48 pm, "dancer"  wrote:
>
> > How can I get the buttons to appear on the same line as the question?  No
> > matter what I do buttons appear on the NEXT line.
>
> > Are you at least 18 years of age?
> >                   <asp:RadioButtonList id="Eighteen"
> > RepeatDirection="horizontal" Runat=server>
> >                     <asp:ListItem><font face="Verdana"
> > Size="2">Yes</asp:ListItem>
> >                     <asp:ListItem><font face="Verdana"
> > Size="2">No</asp:ListItem> </asp:RadioButtonList><br>
>
> you can add your code to a table
>
> <table>
> <tr>
> <td>
> Are you at least 18 years of age?
> </td>
> <td>
> <asp:RadioButtonList id="Eighteen"
> RepeatDirection="horizontal" Runat=server>
>                     <asp:ListItem><font face="Verdana"
> Size="2">Yes</asp:ListItem>
>                     <asp:ListItem><font face="Verdana"
> Size="2">No</asp:ListItem> </asp:RadioButtonList>
> </td>
> </table>
>
> The control is created in <DIV> and it makes a new line by default


I was wrong, it creates a table aroud a RadioButtonList...

another option then, you can simply add

<div style="float:left">Are you at least 18 years of age?</div>

It also should make a text and a buttons in one line
Date:Fri, 03 Aug 2007 15:36:50 -0700   Author:  

Re: RadioButtonList   
That worked.  Thank you.  I wonder why the buttons do not line up with the 
MIDDLE of the text, instead of appearing slightly lower than the text?


"Alexey Smirnov"  wrote in message 
news:1186180610.601557.88530@g4g2000hsf.googlegroups.com...

> On Aug 4, 12:28 am, Alexey Smirnov  wrote:
>> On Aug 3, 11:48 pm, "dancer"  wrote:
>>
>> > How can I get the buttons to appear on the same line as the question? 
>> > No
>> > matter what I do buttons appear on the NEXT line.
>>
>> > Are you at least 18 years of age?
>> >                   <asp:RadioButtonList id="Eighteen"
>> > RepeatDirection="horizontal" Runat=server>
>> >                     <asp:ListItem><font face="Verdana"
>> > Size="2">Yes</asp:ListItem>
>> >                     <asp:ListItem><font face="Verdana"
>> > Size="2">No</asp:ListItem> </asp:RadioButtonList><br>
>>
>> you can add your code to a table
>>
>> <table>
>> <tr>
>> <td>
>> Are you at least 18 years of age?
>> </td>
>> <td>
>> <asp:RadioButtonList id="Eighteen"
>> RepeatDirection="horizontal" Runat=server>
>>                     <asp:ListItem><font face="Verdana"
>> Size="2">Yes</asp:ListItem>
>>                     <asp:ListItem><font face="Verdana"
>> Size="2">No</asp:ListItem> </asp:RadioButtonList>
>> </td>
>> </table>
>>
>> The control is created in <DIV> and it makes a new line by default
>
> I was wrong, it creates a table aroud a RadioButtonList...
>
> another option then, you can simply add
>
> <div style="float:left">Are you at least 18 years of age?</div>
>
> It also should make a text and a buttons in one line
> 
Date:Mon, 6 Aug 2007 11:26:54 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us