Adding EventHandlers To DataListItem Child Controls

  • Thread starter Thread starter Mathew Quick
  • Start date Start date
M

Mathew Quick

For the sake of example I am keeping this simple:
I have a DataList.
The DataList has one DataListItem. (i.e. one row)
The DataListItem has a DropDownList control.

I want to set up a SelectedIndexChanged event handler on the
DropDownList control.

I have tested out my code about every which way I can think of and I
can't get it to work. It's a pretty simple set up if you want to play
around with it so I wont bother posting the code.

Anyone have ideas?

-Quick
 
Mathew Quick said:
For the sake of example I am keeping this simple:
I have a DataList.
The DataList has one DataListItem. (i.e. one row)
The DataListItem has a DropDownList control.

I want to set up a SelectedIndexChanged event handler on the
DropDownList control.

I have tested out my code about every which way I can think of and I
can't get it to work. It's a pretty simple set up if you want to play
around with it so I wont bother posting the code.

Anyone have ideas?

Use FindControl to find the DropDownList.
 
Back
Top