<%@ 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>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="TelefonyDataContext" TableName="ListaOsobs" 
            EnableUpdate="True" EnableDelete="True" EnableInsert="True">
        </asp:LinqDataSource>
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="LinqDataSource1" AllowPaging="True" AllowSorting="True" 
            DataKeyNames="Id">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="Imię" HeaderText="Imię" SortExpression="Imię" />
                <asp:BoundField DataField="Nazwisko" HeaderText="Nazwisko" 
                    SortExpression="Nazwisko" />
                <asp:BoundField DataField="NumerTelefonu" HeaderText="NumerTelefonu" 
                    SortExpression="NumerTelefonu" />
                <asp:BoundField DataField="Wiek" HeaderText="Wiek" SortExpression="Wiek" />
            </Columns>
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
