why do not I take the txtboxes in composite control?

0

I started to study and try to do a project that I already have in web forms, and in the log it does not take the corresponding txt to enter data (for example), I clarify (just for the doubts) that the form has a compositve control, can someone guide me on what my error is based? taking into account that the web was perfect, the error should be in the buttons, any ideas? I leave full code of the frm public partial class FrmLogueo: Form     {         private Employee _ Employee = null;         private Login _Login = null;         // public delegate void pass (int cedula);         // public event pass pasacedula;         public FrmLogueo ()         {             InitializeComponent ();         }

    private void btnIniciarSesion_Click(object sender, EventArgs e)
    {
        //int cedula = 0;
        //string contraseña;
        try
        {
            int cedula = 0;
            string contraseña = "";
            try
            {
                cedula = Convert.ToInt32(_Login.Usuario);
            }
            catch
            {
                lblerror.Text = "Cedula Incorrecta";
            }
            try
            {
                contraseña = _Login.Contraseña;
            }
            catch
            {
                lblerror.Text = "Contraseña incorrecta";
            }
            ILogicaEmpleado LEmpleado = FabricaLogica.getLogicaEmpleado();
            _Empleado = LEmpleado.BuscarEmpleadoLogueo(cedula, contraseña);


            if (_Empleado == null)
            {
                lblerror.Text = "No existe el Empleado";

            }
            else
            {
                //pasarcedula(_Login.Usuario);
                FrmDefault _unfrm = new FrmDefault();
                _unfrm.Show();
            }
        }
        catch (Exception ex)
        {
            lblerror.Text = ex.Message;
        }
    }

    private void login1_Load(object sender, EventArgs e)
    {

    }
    
asked by bruno birriel 08.10.2018 в 19:45
source

0 answers