OnSelectedIndexChanged not firing

  • Thread starter Thread starter Julie Barnet
  • Start date Start date
J

Julie Barnet

I have a dropdownlist. It does not fire the selected index changed
event when it should. I also have a submit button on my page, and
when it is clicked, it does fire the selectedindexchanged event of the
dropdownlist. What am I doing wrong?
mbcbb:combobox is a user control combining the funcitonality of a
dropdownlist and a textbox.

aspx
<mbcbb:combobox
Runat="Server"
id="cmbmyCombo"
DataTextField="myValue"
DataValueField="myValue"
DataSource='<%# GetDropDownSource("sel_LookupMyValue", "**", "") %>'
OnSelectedIndexChanged="mySelIndexChanged"
AutoPostBack="True" >

aspx.vb
Protected Sub mySelIndexChanged(sender as object, e as
System.EventArgs)
response.write("Text")
End Sub

Thanks in advance
Julie Barnet
 
missing handles?

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

End Sub
 
Hi,

Make sure AutoEventWireup attribute of your Contol directive is set to
true. Hope it will work.
 
Back
Top