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

<!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>Test ObjectDataSource</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1">
            <Columns>
                <asp:BoundField DataField="Id_compte" HeaderText="Id_compte" SortExpression="Id_compte" />
                <asp:BoundField DataField="Titulaire" HeaderText="Titulaire" SortExpression="Titulaire" />
                <asp:BoundField DataField="Solde" HeaderText="Solde" SortExpression="Solde" />
            </Columns>
        </asp:GridView>        
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="CompteDataObject"
            DeleteMethod="Delete" InsertMethod="Insert" SelectMethod="GetAll" TypeName="FabriqueCompte"
            UpdateMethod="Update" OnObjectCreating="ObjectDataSource1_ObjectCreating"></asp:ObjectDataSource>
        &nbsp;</div>
    </form>
</body>
</html>
