2

how to add SelectedIndexChanged event for DropDownList in SharePoint2010?

roman
  • 199
  • 2
  • 2
  • 9
  • Just a note - nothing here is specific to SharePoint - you'd do the same in web forms, or in any other event you need to bind dynamically. – Kobi Apr 26 '11 at 08:39

1 Answers1

2

if YourDropDownList is the DropDownList:

YourDropDownList.SelectedIndexChanged += new EventHandler(your_handling_function);

your_handling_function is the method triggered by the event:

public void your_handling_function(object sender, EventArgs e)
Kobi
  • 135,331
  • 41
  • 252
  • 292
maxi3601
  • 96
  • 2