<%@ 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 ListBox</title>
</head>
<body>
   <form id="form1" runat="server">
   <div>
      <h1>Kontrolka ListBox</h1>
      <h2>Kontrolka ListBox - Pojedyncze zaznaczenie</h2>
      <asp:ListBox ID="lbSingle" runat="server"
         AutoPostBack="True"
         Rows="6"
         OnSelectedIndexChanged="lbSingle_SelectedIndexChanged">
      </asp:ListBox>
      <br />
      <asp:Label ID="lblSingle" runat="server"></asp:Label>
      <br />
      <h2>Kontrolka ListBox - Wiele zaznacze</h2>
      <asp:ListBox ID="lbMulti" runat="server"
         AutoPostBack="True"
         SelectionMode="Multiple"
         OnSelectedIndexChanged="lbMulti_SelectedIndexChanged">
      </asp:ListBox>
      <br />
      <asp:Label ID="lblMulti" runat="server"></asp:Label>
   </div>
   </form>
</body>
</html>
