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

<!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>Jointure SQL</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id_compte"
            DataSourceID="SqlDataSource1">
            <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" />
                <asp:BoundField DataField="nom_agence" HeaderText="nom_agence" SortExpression="nom_agence" />
            </Columns>
        </asp:GridView>
        <br />
        <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:bancaConnectionString %>"
            SelectCommand="SELECT compte.id_compte, compte.titulaire, compte.solde, agence.nom_agence FROM compte INNER JOIN agence ON compte.id_agence = agence.id_agence">
        </asp:SqlDataSource>
        &nbsp;</div>
    </form>
</body>
</html>
