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

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Virement</title>
    <script>
        function ClientCallback(result, context) {
            var compte_destinataire = document.forms[0].elements['compte_destinataire'];

            compte_destinataire.innerHTML = "";
            var rows = result.split('|');
            for (var i = 0; i < rows.length; i++) {
                var option = document.createElement("option");

                option.value = rows[i];
                option.innerHTML = rows[i];
                compte_destinataire.appendChild(option);
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">    
        <h2>Effectuer un virement</h2>
        <table>
            <tr>
                <td>Compte emetteur</td>
                <td><asp:DropDownList ID="compte_emetteur" runat="server">
            <asp:ListItem>Choisir</asp:ListItem>
            <asp:ListItem Value="P">Compte personnel</asp:ListItem>
            <asp:ListItem Value="L">Livret</asp:ListItem>
        </asp:DropDownList></td>
            </tr>
            <tr>
                <td>Compte destinataire</td>
                <td> <asp:DropDownList ID="compte_destinataire" runat="server">
        </asp:DropDownList></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td></td>
            </tr>
            <tr>
                <td>Montant</td>
                <td><asp:TextBox ID="montant" runat="server" Columns="4" MaxLength="4"></asp:TextBox></td>
            </tr>
        </table>
              
        
        <br />
        
        <asp:Button ID="virer" runat="server" Text="Virer" />
    </form>
</body>
</html>
