Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - RadioButtonList Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RadioButtonList Control

 Post Reply Post Reply Page  12>
Author
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Topic: RadioButtonList Control
    Posted: 11 February 2005 at 2:01am
I am not happy with the way a couple of radio buttons look. I used the RadioButtonList Control.
 
Here's my code:
<tr>
                &nbs p;       <td height="42" align="right" valign="top" bgcolor="#e8e8e8"><font face="MS Sans Serif, Arial" size="2" color="#000000"><strong><nobr>
                &nbs p;         Show Email Address?</nobr></strong></font></td>
            <td colspan="2" valign="top" bgcolor="#e8e8e8"> <p>            
            <asp:RadioButtonList id=radShowEmail runat="server" Columns="30">
            <asp:ListItem Value="0" selected="True">Yes</asp:ListItem>
            <asp:ListItem Value="1">No</asp:ListItem>
          
        </asp:RadioButtonList>
         </p></td></tr>
 
Here's how it looks:
Show Email Address?

< id=radShowEmail_0 = value=0 name=radShowEmail>
< id=radShowEmail_1 = value=1 name=radShowEmail>

 
I would like for No to be right of Yes. How do I work around this? I had no problem in Classic ASP.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2005 at 3:54pm
The RadioButton List control has a Property for either Table Layout or Flow Layout. Change it to flow as it defaults to table.
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2005 at 4:11pm
How do you set it to Flow Layout? Thanks!
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2005 at 5:23pm
RadioButtonList1.RepeatLayout = RepeatLayout.Flow
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2005 at 7:58pm
or you actually set it as a property in the designer. It's one of the properties of the property window
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2005 at 1:40am
Originally posted by Mart Mart wrote:

RadioButtonList1.RepeatLayout = RepeatLayout.Flow
 
Mart, I tried doing what you suggested. I got the following error message:
 
Parser Error Message: The server tag is not well formed.

Source Error:

Line 382:                          Show Email Address?</nobr></strong></font></td>
Line 383:            <td colspan="2" valign="top" bgcolor="#e8e8e8"> <p>             
Line 384:            <asp:RadioButtonList1.RepeatLayout = RepeatLayout.Flow id=radShowEmail runat="server" Columns="30"> 
Line 385:            <asp:ListItem Value="0" selected="True">Yes</asp:ListItem> 
Line 386:            <asp:ListItem Value="1">No</asp:ListItem> 
 
Originally posted by michael michael wrote:

or you actually set it as a property in the designer. It's one of the properties of the property window
 
Michael, I am new at Visual Studio .Net. I use notepad to edit my code a lot. Can you please explain how to do this? I tried finding it in Visual Studio .Net.


Edited by Misty - 12 February 2005 at 1:44am
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2005 at 5:11am
http://www.devjunkies.com/feed/vs.jpg

If you can't see the properties pane, View > Properties...
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2005 at 2:17pm
I was able to get the properties window up. However, I cannot get the web page do display Design and HTML tabs at the bottom. How do I get them to display?  I clicked on ToolBars under View. I clicked on Design and HTML Editor.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.