以下是我的下拉列表,自动回发为true。现在当我选择前缀1时,它会给我一个回发,但当我再次选择它时,它不会回发。我必须先选择前缀2项,然后再返回到前缀1才能再次回发。就像只有在
我需要每次选择下拉列表时都进行回发,即使是相同的项目。
SeletedIndexChange
时才回发一样。我需要每次选择下拉列表时都进行回发,即使是相同的项目。
<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>