Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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???

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    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?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •