嗨,我创建了一个弹出式用户控件,它绝对可以正常工作,但是当我单击关闭按钮以外的其他按钮时,它正在关闭..
这是我的代码,
<ajax:ModalPopupExtender ID="ModalPopupContextInfo" runat="server"
TargetControlID="btnShowEditContextPopup" PopupControlID="pnlpopupContextInfo"
CancelControlID="imgClose" BackgroundCssClass="modalBackground">
</ajax:ModalPopupExtender>
< asp:Panel ID="pnlpopupContextInfo" DefaultButton="imgbtnUpdate" runat="server" BackColor="White" Height="360px" Width="400px" Style="display: none" >
<asp:ImageButton ID="imgClose" runat="server" ImageUrl="~/image_repository/cancelButton.png" ToolTip="Close" />
..................
// Code for Labels and text boxes..
<asp:ImageButton ID="imgbtnCancel" runat="server" CausesValidation="false" TabIndex="8" ImageUrl="~/image_repository/cancel.png" />
<asp:ImageButton ID="imgbtnUpdate" runat="server" CausesValidation="false" TabIndex="8" ImageUrl="~/image_repository/UpdateVoyage.png" />
</asp:Panel>
在这里,当我单击更新或取消按钮时,弹出窗口也将关闭.. 如何响应来自父 Web 表单(aspx 页面)的用户控件按钮(在此处更新)单击事件
谁能帮忙