The issue seems to be that, no matter what the user selects, it always returns whatever was set as the default when the DropDownList was loaded.
Private Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSave.Click MsgBox(ddlStates.Text) End Sub
I'll admit it's been a while since I've done any programming, but I'm thinking it should work. So, what am I doing wrong?
Private Sub ddlStates_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlStates.SelectedIndexChanged MsgBox(ddlStates.Text) End Sub
From novice to tech pro — start learning today.