Creates a multi selection check box group that can be dynamically created by binding the control to a data source

CheckBoxList control inherits Microsoft's CheckBoxList documented here.

Namespace: FiftyOne.Framework.Mobile.Controls
Assembly: FiftyOne.Framework (in FiftyOne.Framework.dll) Version: 2.0.2.1 (2.0.2.1)

Syntax

C#
[ToolboxBitmapAttribute("FiftyOne.Framework.Mobile.Controls.CheckBoxList")]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class CheckBoxList : CheckBoxList, 
	IAutoPostBackControl, IStyle, IUrlResolutionService, IMobileProfileControl, IControlSize, 
	ICssIncludeGroup
Visual Basic
<ToolboxBitmapAttribute("FiftyOne.Framework.Mobile.Controls.CheckBoxList")> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class CheckBoxList _
	Inherits CheckBoxList _
	Implements IAutoPostBackControl, IStyle, IUrlResolutionService, IMobileProfileControl,  _
	IControlSize, ICssIncludeGroup
Visual C++
[ToolboxBitmapAttribute(L"FiftyOne.Framework.Mobile.Controls.CheckBoxList")]
[AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)]
public ref class CheckBoxList : public CheckBoxList, 
	IAutoPostBackControl, IStyle, IUrlResolutionService, IMobileProfileControl, IControlSize, 
	ICssIncludeGroup

Examples

The following code example demonstrates how to create a CheckBoxList control on a Web page.

CopyXML
<mob:CheckBoxList runat="server" ID="CheckBoxList1" AutoPostBack="true"
    OnSelectedIndexChanged="CheckBoxList1_SelectedIndexChanged" >
    <asp:ListItem> Tennis</asp:ListItem>
    <asp:ListItem> FootBall</asp:ListItem>
    <asp:ListItem> Cricket</asp:ListItem>
    <asp:ListItem> Hockey</asp:ListItem>
    <asp:ListItem> Chess</asp:ListItem>
</mob:CheckBoxList>
<mob:Label id="lbl_Result" runat="server" />
CopyC#
protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
{
    lbl_Result.Text="";
    for (int i = 0; i < CheckBoxList1.Items.Count; i++)
        if (CheckBoxList1.Items[i].Selected)
           lbl_Result.Text += "<br /> You Have Interested  In :" + CheckBoxList1.Items[i].Text;
}

Inheritance Hierarchy

See Also