Is there is CheckListBox for ASP.NET?

Last post 11-10-2009 1:04 PM by anas. 1 replies.

Sort Posts:

  • Is there is CheckListBox for ASP.NET?

    11-10-2009, 11:53 AM
    • Member
      44 point Member
    • malachi151
    • Member since 09-01-2007, 10:39 PM
    • Posts 87

    I know there is a CheckBoxList, but I need a CheckListBox. I thought that there was such a thing, but I can't find it. I dont' see one in either the standatd controls or the AJAX Control Toolkit.

    I'm looking obviously for a drop down list box, that has checks in it so you can select or deselect the items in the list. 

  • Re: Is there is CheckListBox for ASP.NET?

    11-10-2009, 1:04 PM
    Answer
    • All-Star
      59,458 point All-Star
    • anas
    • Member since 09-21-2006, 4:31 AM
    • Palestinian Territory, Occupied
    • Posts 6,739
    • Moderator

     You can easily accomplish that by using the popupextendar:

    This is an example with the CheckBoxList:

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Label ID="Label1" runat="server" Text=">>"></asp:Label>
    <AjaxToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="Label1"
        PopupControlID="CheckBoxList1">
    </AjaxToolkit:PopupControlExtender>
    <asp:CheckBoxList ID="CheckBoxList1" runat="server">
        <asp:ListItem>Item1</asp:ListItem>
        <asp:ListItem>Item2</asp:ListItem>
        <asp:ListItem>Item3</asp:ListItem>
        <asp:ListItem>Item4</asp:ListItem>
    </asp:CheckBoxList>


    For more information on how to aetup your poject to use ajaxtookit :

    http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-47-cs.aspx

    Regards,

    Anas Ghanem | Blog

Page 1 of 1 (2 items)