Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2005, 04:23 PM
mlf mlf is offline
Registered User
 
Join Date: Jan 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default RadioButtonList as array with label

I'm struggling with how to get a radiobuttonlist next to a label field with the layout of the label, then the radio buttons. Whenever I create a RadioButtonList it automatically seems to drop to a newline and I do not see any label property for the RadioButtonList:

Gender 0 Female 0 Male

With the Gender being the label and the 0 represending the radio button. I am able to create the 0 Female 0 Male by utilizing the RepeatDirection="Horizontal" property but I do not see a property for label/text for the Gender field. I need the full line together, not on a new line.

<asp:RadioButtonList id="genderRadioButton" runat="server" RepeatDirection="Horizontal"
        Height="26px" RepeatColumns="2">
        <asp:ListItem Value="F">Female</asp:ListItem>
        <asp:ListItem Value="M">Male</asp:ListItem>
    </asp:RadioButtonList></P>


Thanks in advance, Marcy.

 
Old January 29th, 2005, 02:22 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Can you give an example of what the output should look like?
 
Old February 4th, 2005, 01:18 PM
mlf mlf is offline
Registered User
 
Join Date: Jan 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I discovered which property to set to get them on one line. The repeatlayout=flow instead of table.








Similar Threads
Thread Thread Starter Forum Replies Last Post
RadioButtonList sumith ASP.NET 2.0 Basics 0 October 2nd, 2007 11:30 PM
Label Array With Dynamic Size nevincm C# 1 April 13th, 2007 11:24 AM
Get values from RadioButtonList debjanib ASP.NET 1.0 and 1.1 Basics 1 May 30th, 2006 09:45 PM
radiobuttonlist fzilz VS.NET 2002/2003 1 April 9th, 2004 10:03 AM
Label array dunnie Pro VB 6 7 August 29th, 2003 06:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.