在ModalPopupExtender关闭事件执行时执行代码

时间:2017-08-31 13:30:50

标签: asp.net events modalpopupextender

我想调用一行代码,其中模态弹出扩展器关闭。但此时调试器不会出现。是这样做的任何其他方式.. 像:

<asp:LinkButton ID="lnkfaketree" runat="server"></asp:LinkButton>
                <asp:ModalPopupExtender ID="mpeTree" runat="server" BackgroundCssClass="modalBackground recharge" CancelControlID="btntreeclose" PopupControlID="paneltree" TargetControlID="lnkfaketree"></asp:ModalPopupExtender>
        <asp:Panel ID="paneltree" runat="server" Style="display: none">
            <div class="btn-group pull-right">
            </div>
            <div class="box box-primary">
                <div class="box-header with-border" style="padding: 3px; background-color: #14181a; font-weight: bolder">
                    <h3 class="box-title" style="color: white">Tree View</h3>
                    <div class="btn-group pull-right">
                        <asp:LinkButton ID="btntreeclose" runat="server" CssClass="fa fa-close" OnClick="btntreeclose_Click"></asp:LinkButton>
                    </div>
                </div>

                <div class="form-horizontal">
                    <div class="box-body">
                        <div id="chart_div" style="width: 1000px; height: 500px; overflow: auto">
                        </div>

                    </div>
                </div>

            </div>

        </asp:Panel>

以下是代码行:

protected void btntreeclose_Click(object sender, EventArgs e)
        {
            hdmcode.Value = lblAffiliateCode.Text;
        }

0 个答案:

没有答案