<%@ 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>Test DataAdapter</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id_compte" DataSourceID="ObjectDataSource1">
            <Columns>
                <asp:BoundField DataField="id_compte" HeaderText="id_compte" InsertVisible="False" ReadOnly="True" 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" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataTableCompte" TypeName="DataSetBanqueTableAdapters.compteTableAdapter" UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_id_compte" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="titulaire" Type="String" />
                <asp:Parameter Name="solde" Type="Decimal" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="titulaire" Type="String" />
                <asp:Parameter Name="solde" Type="Decimal" />
                <asp:Parameter Name="Original_id_compte" Type="Int32" />
            </UpdateParameters>
        </asp:ObjectDataSource>
    
    </div>
    </form>
</body>
</html>
