Пример #1
0
    protected void btnAlta_Click(object sender, EventArgs e)
    {
        try
        {
            Cliente oCli = new Cliente(txtNomUsu.Text.Trim(), txtPass.Text.Trim(), txtNombre.Text.Trim(), txtApellido.Text.Trim(), txtDireccion.Text.Trim(), Convert.ToInt32(txtTelefono.Text.Trim()));

            btnAlta.Visible       = false;
            btnActualizar.Visible = true;

            LogicaUsuario.AltaCliente(oCli);

            lblError.Text = "Alta exitosa";
        }
        catch (Exception ex)
        {
            lblError.Text = ex.Message;
        }
    }