0

Possible Duplicate:
ASP.Net: DropDownList's SelectedIndexChanged event not firing

I created a new ASP.NET default website from Visual Studio. I have used a drop down list control on my .aspx page and set the data source for it, which is working fine.

However, I need to use the SelectedIndex_Changed event for this DDlist, which is not getting fired due to unknown reasons. I have tried putting breakpoints inside the event, but it doesn't even fall inside the function.

Any idea what could be wrong?

Community
  • 1
  • 1
Cipher
  • 5,894
  • 22
  • 76
  • 112

3 Answers3

4

Try setting AutoPostBack to True

Shai
  • 25,159
  • 9
  • 44
  • 67
1

Just check that have you put AutoPostBack="true" in dropdown!

Arun Rana
  • 8,426
  • 14
  • 67
  • 107
0

Assuming you haven't changed the AutoPostBack property to False, make sure that your databound ListItems have unique values. Also, the event is SelectedIndexChanged, not SelectedIndex_Changed,

pete
  • 24,141
  • 4
  • 37
  • 51