0

I have an asp:Repeater with an asp:DropDownList in it. The DropDownLists in the repeater raise their SelectedIndexChanged events on every postback, regardless of whether they were changed or not.

Is this a known issue in ASP.NET? Do you know how to work around it?

I found this workaround but would like something prettier if at all possible.

TheVillageIdiot
  • 40,053
  • 20
  • 133
  • 188
James Orr
  • 5,005
  • 7
  • 39
  • 63

1 Answers1

0

Ah I found it - I was adding the event handler in codebehind, but when I moved it to the OnSelectedIndexChanged attribute of the asp:DropDownList control in the ASP.NET markup everything started behaving correctly.

James Orr
  • 5,005
  • 7
  • 39
  • 63