Ejemplo n.º 1
0
        protected void btnCreate_Click(object sender, EventArgs e)
        {
            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.createClient(nom, prenom, numero, voie, ville, codepostal, telephone, login, password, email, type, 12);

            Response.Redirect("Connexion.aspx");
        }