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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">  <title>Wybierz dostawcę</title>
</head>
<body>
    <form id="form1" runat="server">
      <table style="width:166px; height:33px">
         <tr>
            <td colspan="2" style="height:20px">
               Witamy w Northwind
            </td>
         </tr>
         <tr>
            <td>Podaj imię:</td>
            <td><asp:TextBox ID="txtName" runat="server" /></td>
         </tr>
         <tr>
            <td>Dostawca:</td>
            <td>
              <asp:RadioButtonList ID="rblShippers" runat="server" 
                DataSourceID="SqlDataSource1"
                DataTextField="CompanyName" DataValueField="ShipperID">
              </asp:RadioButtonList>

              <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
              ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString  %>"
              SelectCommand="SELECT [ShipperID], [CompanyName] FROM [Shippers]" />
              <br />
            </td>
          </tr>
          <tr>
            <td><asp:Button ID="btnOrder" runat="server" Text="Zamów" OnClick="btnOrder_Click" /></td>
            <td><asp:Button ID="btncancel" runat="server" Text="Anuluj" /></td>
          </tr>
          <tr>
            <td colspan="2"><asp:Label ID="lblMsg" runat="server" /></td>
          </tr>
      </table>
    </form>
</body>
</html>

