Asp.net 在dropdownextender关闭时调用javascript函数

Asp.net 在dropdownextender关闭时调用javascript函数,asp.net,animation,dropdownextender,Asp.net,Animation,Dropdownextender,我正在开发一个多选下拉列表,我使用了Ajax下拉扩展程序 代码 接近 现在我需要在下拉扩展程序关闭时调用java脚本函数。 谁能指导我怎么做。 在这里,我使用的是动画,是否有任何方法可以调用OnHide上的任何java脚本函数。 如果有任何方法,请告诉我。最后我得到了一个解决方案,如何在dropdownextender关闭时调用java脚本函数。 我们可以使用这个函数调用javascript函数 完整代码 现在我的问题解决了 <asp:TextBox ID="txt

我正在开发一个
多选下拉列表
,我使用了
Ajax下拉扩展程序

代码

接近

现在我需要在下拉扩展程序关闭时调用java脚本函数。 谁能指导我怎么做。 在这里,我使用的是动画,是否有任何方法可以调用
OnHide
上的任何java脚本函数。
如果有任何方法,请告诉我。

最后我得到了一个解决方案,如何在
dropdownextender
关闭时调用java脚本函数。 我们可以使用这个函数调用javascript函数


完整代码

现在我的问题解决了

<asp:TextBox ID="txtDisplay" runat="server" CssClass="tb10" ></asp:TextBox>
<asp:Panel ID="DropPanel" runat="server" CssClass="ContextMenuPanel" 
        Width="280px" style="display :none;visibility: hidden;padding-bottom:-1px;
        margin-top:-28px;margin-left:0px;background-color:#F5F5F5;overflow:hidden;
        height:auto;min-height:100px;max-height:300px;max-width:350px;" >
    <div id="CombClose" style="padding-right:2px;color:#FFFFFF;text-align:right;cursor:pointer;height:35px;background-color:#507CD1;width:100%;" runat="server" >Close</div>
    <br />
    <div runat="server" id="listDiv" style="padding-bottom:-1px;margin-top:-28px; 
        margin-left:0px;background-color:#F5F5F5;overflow-Y:auto;overflow-X:hidden;
        height:200px;max-height:265px;max-width:350px;" >
        <asp:CheckBoxList ID="chkList" runat="server" CssClass="Chklist" OnSelectedIndexChanged="chkList_SelectedIndexChanged" > 
        </asp:CheckBoxList>
        <asp:ListBox ID="list" runat="server">
        </asp:ListBox>
    </div>
</asp:Panel>
<ajaxToolkit:DropDownExtender runat="server" ID="DDE" TargetControlID="txtDisplay" 
    DropDownControlID="DropPanel" HighlightBorderColor="Transparent" OnClientPopup="OnClientPopup" >
    <Animations>
        <OnShow>
            <Sequence>          
                <HideAction Visible="true" />                                          
                <FadeIn  Duration=".5" Fps="10" />         
            </Sequence>
        </OnShow>
        <OnHide>
            <Sequence>                       
                <FadeOut Duration=".5" Fps="10" />
                <HideAction Visible="false" />
                <StyleAction Attribute="display" Value="none"/>
            </Sequence>
        </OnHide>
    </Animations>
</ajaxToolkit:DropDownExtender>
<ScriptAction Script="alert('Dropdown is colsing');" />
<ajaxToolkit:DropDownExtender runat="server" ID="DDE" TargetControlID="txtDisplay" 
DropDownControlID="DropPanel" HighlightBorderColor="Transparent" OnClientPopup="OnClientPopup" >
<Animations>
    <OnShow>
        <Sequence>          
            <HideAction Visible="true" />                                          
            <FadeIn  Duration=".5" Fps="10" />         
        </Sequence>
    </OnShow>
    <OnHide>
        <Sequence>                       
            <FadeOut Duration=".5" Fps="10" />
            <HideAction Visible="false" />
            <StyleAction Attribute="display" Value="none"/>
            <ScriptAction Script="alert('Dropdown is colsing');" />
        </Sequence>
    </OnHide>
</Animations>
</ajaxToolkit:DropDownExtender>