Exemplo n.º 1
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            Client client = (Client)Session["Client"];

            int idclient = client.IdClient;

            string nom    = this.txtNom.Text;
            string prenom = this.txtPrenom.Text;

            string numero     = this.txtNumero.Text;
            string voie       = this.txtVoie.Text;
            string ville      = this.txtVille.Text;
            string codepostal = this.txtCodePostal.Text;
            string telephone  = this.txtTelephone.Text;

            string login    = this.txtLogin.Text;
            string password = this.txtPassword.Text;
            string email    = this.txtEmail.Text;

            bool type = Convert.ToBoolean(this.txtType.Text);


            DaoClient daoClient = new DaoClient();

            daoClient.updateClient(idclient, nom, prenom, numero, voie, ville, codepostal, telephone, login, password, email, type, 13);

            Response.Redirect("./Compte.aspx");
        }