Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RadioButtonList

Reply
Thread Tools

RadioButtonList

 
 
dancer
Guest
Posts: n/a
 
      08-03-2007
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>



 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      08-03-2007
On Aug 3, 11:48 pm, "dancer" <dan...@microsoft.com> 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

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      08-03-2007
On Aug 4, 12:28 am, Alexey Smirnov <alexey.smir...@gmail.com> wrote:
> On Aug 3, 11:48 pm, "dancer" <dan...@microsoft.com> 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

 
Reply With Quote
 
dancer
Guest
Posts: n/a
 
      08-06-2007
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: ps.com...
> On Aug 4, 12:28 am, Alexey Smirnov <alexey.smir...@gmail.com> wrote:
>> On Aug 3, 11:48 pm, "dancer" <dan...@microsoft.com> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Attributes to RadioButtonList Items? Mike S ASP .Net 1 07-15-2003 05:36 AM
populating radiobuttonlist from database programmatically Hazzard ASP .Net 3 07-14-2003 10:36 PM
radiobuttonlist and javascript?? Leif ASP .Net 1 07-11-2003 06:58 PM
RadioButtonList in Nested DataGrid Problem Bob Hoke ASP .Net 0 07-11-2003 06:28 PM
RadioButtonList Question -- Probably Simple Ron ASP .Net 2 07-01-2003 07:54 PM



Advertisments