DropDownList.Selected value becomes empty when running SelectIndex Changed

G

Guido Steijaert

When I select a value in the dropdownlist a label needs to give this value.
After selecting "Label10.text" = empty and also the value displayed in de
dropdownlist is empty. Enclosed the code from te SelectedIndexChanged.

Regards,

Guido Steijaert

Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
DropDownList1.SelectedIndexChanged

Label10.Text = DropDownList1.SelectedValue

End sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top