Example #1
0
 protected void btnAccount_Click(object sender, EventArgs e)
 {
     c = new Compte();
     if (c.ID == null)
     {
         c = new Compte(tbNom.Text, float.Parse(tbMontant.Text));
         c.Ajouter();
         Response.Redirect("Accounts.aspx");
     }
     else
     {
         c = new Compte(tbNom.Text, float.Parse(tbMontant.Text));
         c.Modifier().Trim();
         Response.Redirect("Accounts.aspx");
     }
 }