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

<!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>CompteBusinessObject</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" DataKeyNames="Id_compte" CellPadding="4" ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True" />
                <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>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <br />
        <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False"
            CellPadding="4" DataSourceID="ObjectDataSource1" ForeColor="#333333" GridLines="None"
            Height="50px" Width="125px">
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
            <EditRowStyle BackColor="#2461BF" />
            <RowStyle BackColor="#EFF3FB" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <Fields>
                <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" />
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowInsertButton="True" />
            </Fields>
            <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:DetailsView>
        <br />
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetAll"
            TypeName="FabriqueBusinessCompte" 
            DataObjectTypeName="CompteBusinessObject" 
            UpdateMethod="Update"
            SelectCountMethod="GetCount" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}"
            ></asp:ObjectDataSource>
        <br />
        <br />
        </div>
    </form>
</body>
</html>
