在DropDownList中触发事件

Ala*_*ith 2 asp.net webforms

DropdownListDecks_SelectedIndexChanged永远不会调用该过程.

<asp:DropDownList
        ID="DropDownListDecks"
        runat="server" 
        DataSourceID="EntityDataSourceDecks"
        DataTextField="DeckName"
        viewStateMode="Enabled" 
        DataValueField="DeckBackImageString" 
        CausesValidation="True" 
        onselectedindexchanged="DropDownListDecks_SelectedIndexChanged">
</asp:DropDownList>
Run Code Online (Sandbox Code Playgroud)

Sub*_*cob 5

设置autopostback=true在ASP DropDownList控件.