protected void tboxDNI_TextChanged(object sender, EventArgs e) { unUsuario = unUsuarioNegocio.BusquedaUsuario(tboxDNI.Text); bool Registrado = false; if (unUsuario != null) { tboxNombre.Text = unUsuario.Nombre; tboxApellido.Text = unUsuario.Apellido; tboxMail.Text = unUsuario.Mail; tboxDireccion.Text = unUsuario.Direccion; tboxCiudad.Text = unUsuario.Ciudad; tboxCP.Text = unUsuario.CodigoPostal; Registrado = true; } else { tboxNombre.Text = ""; tboxApellido.Text = ""; tboxMail.Text = ""; tboxDireccion.Text = ""; tboxCiudad.Text = ""; tboxCP.Text = ""; Registrado = false; } Session["RegistroUsuario"] = Registrado; }