OnSelectedIndexChanged not firing

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
 
M

MS News \(MS ILM\)

missing handles?

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

End Sub
 
Y

Yusuf D M

Hi,

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

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top