Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-24-2010, 03:48 PM   PM User | #1
kolotan
New to the CF scene

 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
kolotan is an unknown quantity at this point
Checkboxlist woe

Hi all,

in my aspx page i've a checkboxlist code

<asp:CheckBoxList id="checkboxlist1"
AutoPostBack="True"
CellPadding="5"
CellSpacing="5"
RepeatColumns="2"
RepeatDirection="Vertical"
RepeatLayout="Table"
TextAlign="Right"
OnSelectedIndexChanged="Check_Clicked"
runat="server">

<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>

</asp:CheckBoxList>

on design page, it is shown perfectly as
[ ] item1 [ ] item4
[ ] item2 [ ] item5
[ ] item3 [ ] item6

however on runtime it is showing
[ ] [ ]
item1 item4
[ ] [ ]
item2 item5
[ ] [ ]
item3 item6

how to get my runtime page to display like design page layout???
kolotan is offline   Reply With Quote
Old 08-25-2010, 07:20 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
on design page, it is shown perfectly as
[ ] item1 [ ] item4
[ ] item2 [ ] item5
[ ] item3 [ ] item6

however on runtime it is showing
[ ] [ ]
item1 item4
[ ] [ ]
item2 item5
[ ] [ ]
item3 item6
Could you post your html taken from browser's view-source option?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 08-25-2010, 09:45 AM   PM User | #3
Aubrey Tod
New to the CF scene

 
Join Date: Aug 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Aubrey Tod can only hope to improve
I have a checkListbox that I am filling with data the a user will be able to select 3 values from and then continue with the program. Is there any way to set the maximum number of options that a user can select from the checkboxs list on the actual control, or is there an easy way to do this with code(preferably without javascript and in c#)

Last edited by Fou-Lu; 08-25-2010 at 03:10 PM.. Reason: Signatures allowed through control panel only
Aubrey Tod is offline   Reply With Quote
Reply

Bookmarks

Tags
checkboxlist

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:58 PM.


Advertisement
Log in to turn off these ads.