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

<!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>Ćwiczenie 3</title>
</head>
<body>
    <form id="form1" runat="server">
      <table style="width:500px; height:31px">
         <tr>
            <td colspan="2" style="height:20px; font-weight: bold; font-size: 20pt;">
               Witamy w Northwind
                <br />
            </td>
         </tr>
         <tr>
            <td style="width: 192px">
                Wybierz produkt:<br />
            </td>
            <td>
                <asp:DropDownList ID="ddlProduct" runat="server" DataSourceID="SqlDataSource1" DataTextField="ProductName" DataValueField="ProductID">
                </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
                    SelectCommand="SELECT [ProductID], [ProductName] FROM [Alphabetical list of products]">
                </asp:SqlDataSource>
                <br />
            </td>
         </tr>
         <tr>
            <td style="width: 192px" valign="bottom">Podaj adres pocztowy:</td>
            <td><asp:TextBox ID="txtAddress" runat="server" Height="80px" Width="318px" TextMode="MultiLine" /></td>
         </tr>
         <tr>
            <td colspan="2">
                <br />
                Wybierz dostawcę:</td>

          </tr>
                  <tr>
            <td colspan="2">
                <asp:RadioButtonList ID="rblShipping" runat="server" RepeatDirection="Horizontal" DataSourceID="SqlDataSource2" DataTextField="CompanyName" DataValueField="ShipperID">
                </asp:RadioButtonList><asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
                    SelectCommand="SELECT [ShipperID], [CompanyName] FROM [Shippers]"></asp:SqlDataSource>
            </td>

          </tr>
          <tr>
            <td colspan="2">Kiedy mamy przypomnieć Ci o ponownym zamówieniu?</td>
            
          </tr>
          <tr>
            <td colspan="2">
                <asp:Calendar ID="calReorder" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" Font-Bold="False" NextPrevFormat="ShortMonth" PrevMonthText="" Width="339px">
                    <SelectedDayStyle BackColor="Black" ForeColor="White" />
                    <TodayDayStyle BackColor="DimGray" ForeColor="White" />
                    <DayStyle BackColor="Gainsboro" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"
                        Font-Underline="True" />
                    <OtherMonthDayStyle ForeColor="Gray" />
                    <NextPrevStyle ForeColor="White" />
                    <TitleStyle BackColor="#404040" BorderColor="White" Font-Bold="True" ForeColor="White" />
                </asp:Calendar>
            </td>
            
          </tr>
               <tr>
            <td colspan="2">
                <asp:Button ID="btnSubmit" runat="server" Text="Wyślij zamówienie" OnClick="btnSubmit_Click" /><br />
            </td>
          </tr>
          <tr>
            <td colspan="2"><asp:Label ID="lblMsg" runat="server" /></td>
          </tr>
      </table>
    </form>
</body>
</html>
