Palmtree
Nov 12th, 2002, 03:48 PM
hi,
I have a label and a combbox on my web form.
what I want to do is after I change the comb's selection, the lable displays the comb's SelectedIndex. It is so simple, but I just can not make it work. Can somebody help? thanks.
The following is my code:
Private Sub combProduct_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles combProduct.SelectedIndexChanged
Label5.Text = combProduct.SelectedIndex
End Sub
I have a label and a combbox on my web form.
what I want to do is after I change the comb's selection, the lable displays the comb's SelectedIndex. It is so simple, but I just can not make it work. Can somebody help? thanks.
The following is my code:
Private Sub combProduct_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles combProduct.SelectedIndexChanged
Label5.Text = combProduct.SelectedIndex
End Sub