<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>Kontrolka CheckBoxList</title>
</head>
<body>
   <form id="form1" runat="server">
   <div>
      <h1>Kontrolka CheckBoxList</h1>
      <h2>Dodawanie elementw ListItems z tablicy</h2>
      <asp:CheckBoxList ID="cblGenre" runat="server"
            AutoPostBack="True"
            CellPadding="5"
            CellSpacing="10"
            RepeatColumns="3"
            OnInit="cblGenre_Init">
         <asp:ListItem> Element 1 </asp:ListItem>
         <asp:ListItem> Element 2 </asp:ListItem>
         <asp:ListItem> Element 3 </asp:ListItem>
         <asp:ListItem> Element 4 </asp:ListItem>
         <asp:ListItem> Element 5 </asp:ListItem>
         <asp:ListItem> Element 6 </asp:ListItem>
      </asp:CheckBoxList>
   </div>
   </form>
</body>
</html>
