protected void btnBuscar_Click(object sender, EventArgs e) { if (txtNombre.Text != "" && txtApellido.Text != "") { PruebasNegocio pNegocio = new PruebasNegocio(); vLstCandidatos = pNegocio.ObtenerCandidatoFolio(txtNombre.Text, txtApellido.Text, null).Select(s => new E_SELECCIONADOS { ID_SELECCION = s.ID_SOLICITUD, CL_SELECCION = s.CL_SOLICITUD, NB_SELECCION = s.NB_COMPLETO, DS_SELECCION = s.NB_APELLIDO_PATERNO }).ToList(); grdCandidatos.Rebind(); } else { UtilMensajes.MensajeResultadoDB(rnMensaje, "Ingresa tu nombre y apellido paterno para realizar la búsqueda", Entidades.Externas.E_TIPO_RESPUESTA_DB.ERROR, 400, 150, ""); } }