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

<!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>Test przycisków poleceń</title>
    <link href="chapterStyles.css" type="text/css" rel="stylesheet" />
</head>
<body>
   <form id="form1" runat="server">
   <div id="container">
      <h1>Prosty kalkulator</h1>
      <div class="box">
         <asp:TextBox ID="txtValue1" runat="server" />
         <asp:Button Text="+" runat="server" ID="btnAdd" Width="30px"
            OnCommand="Button_Command" CommandName="add" />
         <asp:Button Text="-" runat="server" ID="btnSubtract" Width="30px"
            OnCommand="Button_Command" CommandName="subtract" />
         <br/>
         <asp:TextBox ID="txtValue2" runat="server" />
         <asp:Button Text="*" runat="server" ID="btnMultiply" Width="30px"
            OnCommand="Button_Command" CommandName="multiply" />
         <asp:Button Text="/" runat="server" ID="btnDivide" Width="30px"
            OnCommand="Button_Command" CommandName="divide" />
      </div>
      <p>
      <asp:Label ID="labMessage" runat="server" />
      </p>
   </div>
   </form>
</body>
</html>
