<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="operations.aspx.cs" Inherits="operations" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h2>
        Opérations</h2>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id_operation"
        DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="id_compte" HeaderText="N&#176;Compte" SortExpression="id_compte" />
            <asp:BoundField DataField="jour" HeaderText="jour" SortExpression="jour" />
            <asp:BoundField DataField="montant" HeaderText="montant" SortExpression="montant" />
            <asp:BoundField DataField="libelle" HeaderText="libelle" SortExpression="libelle" />
        </Columns>
    </asp:GridView>
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:bancaConnectionString %>"
        SelectCommand="SELECT * FROM [operation] WHERE ([id_compte] = @id_compte)">
        <SelectParameters>
            <asp:QueryStringParameter Name="id_compte" QueryStringField="id_compte" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
</asp:Content>

