Repeater : évènements des contrôles enfants
Bonjour,
J'ai un repeater, à l'intérieur duquel j'ai des items contenant des contrôles.
Je sais gérer les évènements pour des contrôles de type button en valorisant la propriété CommandName="" du bouton et en ajoiut OnItemCommand="" au repeater.
MAIS, je souhaiterais créer des èvènements pour les contrôles de type dropdownlist (OnSelectIndexChanged) ou TextBox (OnTextChanged).
Je ne sais pas comment m'y prendre. Auriez-vous des idées ?
Voici mon code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<asp:Repeater Id="dtlBonsSemences" runat="server" OnItemCommand="OnItemCommand">
<ItemTemplate>
<tr>
<td>
<asp:DropDownList runat="server" ID="ddl1" AutoPostBack="true"></asp:DropDownList>
</td>
<td>
<asp:DropDownList runat="server" ID="ddl2" AutoPostBack="true"></asp:DropDownList>
</td>
<td>
<asp:LinkButton runat="server" ID="lnk3" CommandName="edit" Visible="false"></asp:LinkButton>
</td>
</tr> |
quand je change la valeur de "ddl1" je souhaiterais initialiser les valeurs de "ddl2"
Merci de votre aide.