I have autopostback set to true on my drop down box. I have the following code which loads 3 values in my drop down box.
VB Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cmbPrograms.ClearSelection() If Not IsPostBack Then If Request.Cookies("Priveledge").Value = "Administrator" Then cmbPrograms.Items.Insert(0, New ListItem("PDI Sales", "")) cmbPrograms.Items.Insert(1, New ListItem("Price Check", "")) cmbPrograms.Items.Insert(2, New ListItem("RMS Compare", "")) End If End If End Sub
My problem is that I can't seem to get any events to fire when the user selects one of the values in the box. This is the code I'm using.
VB Code:
Private Sub cmbPrograms_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbPrograms.SelectedIndexChanged If cmbPrograms.SelectedItem.Text = "PDI Sales" Then Response.Redirect("PDI Sales") End If End Sub
I placed a break point in here and this event doesn't even fire when I click in the drop down box.
Anyone have any ideas?
Thanks




Reply With Quote