下面是我的dropdownlist與autopostback真正現在當我選擇prefix1它給了我一個回發,但是當我再次選擇它does not。我必須先選擇prefix2項目,然後返回到prefix1以便再次回發。它就好像僅在SeletedIndexChange
後回傳。dropdownlist autopostback?
我需要回傳evrytime我在下拉列表中選擇,即使它在同一項目:
<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>