Im trying to match a value in a combo box with a value in a text box, however the below code always returns a nothing value even though there is a match between the text in the text box and a value in the combo box, the code works correctly when the value being match is in a querystring but fails when in a text box any ideas?
ListItem = ComboBox.Items.FindByValue(Left(txtValue.Text, 3))
If ListItem Is Nothing Then
ComboBox.SelectedIndex = 0
ComboBox.SelectedValue = txtValue.Text End If