<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CheckBoxList-ArrayItemsAndValues.aspx.cs" Inherits="CheckBoxList_ArrayItemsAndValues" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>Kontrolka CheckBoxList - pobieranie elementów i wartości z tablicy</title>
</head>
<body>   
   <form id="form1" runat="server">
   <div>
        <asp:CheckBoxList ID="cblItems" runat="server" RepeatDirection="Horizontal" RepeatColumns="2"
            RepeatLayout="Flow" OnInit="cblItems_Init">
         <asp:ListItem Value="1">Element 1</asp:ListItem>
         <asp:ListItem Value="2" Text="Element 2" />
         <asp:ListItem Text="Element 3" />
         <asp:ListItem Text="Element 4">Wewnętrzny element 4</asp:ListItem>
         <asp:ListItem Value="5"></asp:ListItem>
         <asp:ListItem>Element 6</asp:ListItem>
      </asp:CheckBoxList>
   </div>
   </form>
</body>
</html>
