3

提示是“DropDownList1”没有找到“DropDownList1_SelectedIndexChanged”

</asp:ScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

   <ContentTemplate>

    <asp:DropDownList ID="DropDownList1" runat="server" 

        onselectedindexchanged="DropDownList1_SelectedIndexChanged">

        <asp:ListItem>1</asp:ListItem>

    </asp:DropDownList>

   </ContentTemplate>

        <Triggers>

            <asp:AsyncPostBackTrigger ControlID="DropDownList1" EventName="DropDownList1_SelectedIndexChanged" /> 

        </Triggers>

请告诉我如何使它工作!

4

1 回答 1

2

你需要AutoPostBack=True

<asp:DropDownList ID="DropDownList1" runat="server"  AutoPostBack="True"   
        onselectedindexchanged="DropDownList1_SelectedIndexChanged">
于 2013-05-15T02:27:54.383 回答