<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" 
AutoEventWireup="true" CodeFile="mescomptes.aspx.cs" 
Inherits="mescomptes" Title="Mes comptes" Theme="general" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h3>
        Mes comptes</h3>
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id_compte" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="id_compte" DataNavigateUrlFormatString="operations.aspx?id_compte={0}"
                    DataTextField="id_compte" HeaderText="N&#176;" />
                <asp:BoundField DataField="solde" HeaderText="solde" SortExpression="solde" />
            </Columns>
        </asp:GridView>
    <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:bancaConnectionString %>" SelectCommand="SELECT [id_compte], [solde] FROM [compte] WHERE ([titulaire] = @titulaire)">
            <SelectParameters>
                <asp:SessionParameter Name="titulaire" SessionField="login" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    
</asp:Content>

