Exemple #1
0
        protected void btnAgregar_Click(object sender, EventArgs e)
        {
            usuario.Correo          = txtCorreo.Text;
            usuario.Nombre          = txtNombre.Text;
            usuario.ApellidoMaterno = txtSegundoApellido.Text;
            usuario.ApellidoPaterno = txtApellido.Text;
            usuario.Alias           = txtAlias.Text;
            usuario.Contrasena      = txtContrasena.Text;
            usuario.Pais            = txtPais.Text;
            usuario.Estado          = 'Y';
            usuario.Estampa         = DateTime.Now.ToString();

            if (bl_usuario.AgregarUsuario(usuario))
            {
                ShowPopUpMsg("Usuario agregado con éxito");
                Response.Redirect("Login.aspx");
            }
            else
            {
                ShowPopUpMsg("Error al ingresar usuario.");
            }
        }