protected void BtnBuscarCuil_Click(object sender, EventArgs e)
        {
            List <Empleado> ListaAux = new List <Empleado>();

            if (IsValid)
            {
                if (RadioButtonCuil.Checked)
                {
                    Aux = ControlEmpleado.Buscar(TxtBuscarXCuil.Text.ToLower());
                    if (Aux != null)
                    {
                        ListaAux.Add(Aux);
                        ListaEmpleados.DataSource = ListaAux;
                        ListaEmpleados.DataBind();
                        ListaEmpleados.Visible                    = true;
                        PanelPopUp.Attributes["display"]          = "none";
                        MensajeConfirmacion.Attributes["display"] = "none";
                        PanelGrilla.Visible = true;
                    }
                    else
                    {
                        ListaEmpleados.Visible = false;
                        ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "erroralert();", true);
                        PanelPopUp.Attributes["display"]          = "none";
                        MensajeConfirmacion.Attributes["display"] = "none";
                    }
                }
            }
        }
 protected void BtnNuevoCliente_Click(object sender, EventArgs e)
 {
     AuxEmp = ControlEmpleado.Buscar(TxtCuil.Text);
     if (IsValid)
     {
         if (AuxEmp == null)
         {
             if (!_isRefresh)
             {
                 ControlEmpleado.Agregar(TxtNombre.Text.ToLower(), TxtApellido.Text.ToLower(), TxtTelefono.Text.ToLower(), TxtEmail.Text.ToLower(), TxtDirecion.Text.ToLower(), TxtCuil.Text.ToLower());
                 ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "successalert();", true);
                 Limpiar();
             }
             else
             {
                 Response.Redirect("AgregarEmpleado.aspx");
             }
         }
     }
 }