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

<!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 runat="server">
   <title>Testowanie zdarzeń</title>
</head>
<body>
<form id="form1" runat="server">
   <div>
      Prosze podać imię:
      <asp:TextBox ID="name" runat="server" />
      <br />
      Proszę podać ulubionego autora:
      <asp:DropDownList ID="myList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="myList_SelectedIndexChanged" >
         <asp:ListItem>Wybierz autora</asp:ListItem>
         <asp:ListItem>Harison</asp:ListItem>
         <asp:ListItem>Lem</asp:ListItem>
         <asp:ListItem>Sapkowski</asp:ListItem>
      </asp:DropDownList><br />
      <asp:Button ID="btnClick" runat="server" Text="Submit" OnClick="btnClick_Click" />
      <p><asp:Label ID="msg1" runat="server" /></p>
   </div>
</form>
</body>
</html>
