<%@ 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>Updating DB Directly</title>
</head>
<body>
   <form id="form1" runat="server">
   <div>
      <asp:GridView
      ID="GridView1"
      runat="server"
      CellPadding="4"
      ForeColor="#333333"
      GridLines="None"
      PagerSettings-Mode="Numeric"
      AllowPaging="True"
      DataKeyNames="ShipperID"
      AutoGenerateColumns="true"
      PageSize="5" >
         <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
         <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
         <PagerStyle BackColor="#284775"
         ForeColor="White" HorizontalAlign="Center" />
         <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
         <SelectedRowStyle BackColor="#E2DED6"
         Font-Bold="True" ForeColor="#333333" />
         <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
         <Columns>
            <asp:CommandField ButtonType="Button" ShowSelectButton="True" />
         </Columns>
      </asp:GridView>
      <asp:Label ID="Label1" runat="server" Text="Nazwisko: "></asp:Label>
      <asp:TextBox ID="txtName" runat="server" Width="135px"/><br />
      <asp:Label ID="Label2" runat="server" Text="Telefon" />
      <asp:TextBox ID="txtPhone" runat="server" Width="137px"/><br />
      <asp:Button ID="btnAdd" runat="server" Text="Dodaj" OnClick="btnAdd_Click" />
      <asp:Button ID="btnEdit" runat="server"
      OnClick="btnEdit_Click" Text="Edytuj" />
      <asp:Button ID="btnDelete" runat="server" Text="Usu"
       OnClick="btnDelete_Click" />
   </div>
   </form>
</body>
</html>
