ci-dessous est ma liste déroulante avec autopostback vrai maintenant quand je choisis prefix1 il me donne un message de retour, mais quand je le sélectionne à nouveau, il doesnt. Je dois d'abord sélectionner l'élément prefix2, puis revenir au préfixe1 pour le publier à nouveau. C'est comme si son postbacking seulement avec SeletedIndexChange
.dropdownlist autopostback?
J'ai besoin postback evrytime je choisis dans mon dropdownlist même si son même élément:
<asp:DropDownList runat="server" ID="lstFilePrefix1" AutoPostBack="True"
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" >
<asp:ListItem Text="Prefix1" Value="Prefix1" />
<asp:ListItem Text="Prefix2" Value="Prefix2" />
<asp:ListItem Text="Prefix3" Value="Prefix3" />
<asp:ListItem Text="Prefix1 and Prefix2" Value="Prefix1 and Prefix2" />
<asp:ListItem Text="Prefix2 and Prefix3" Value="Prefix2 and Prefix3" />
</asp:DropDownList>