0
안녕 난 팝업 하나 사용자 컨트롤을 만들었습니다, 그것은UserControl CancelControlID는 다른 모든 컨트롤에서 작동합니까?
여기 내 코드입니다 .. 절대적으로 작업 벌금,하지만 난 다른 버튼을 클릭 할 때이 닫혀지고 닫기 버튼 이외의 인 내가 .. 방법수 (영문 페이지) 사용자 컨트롤의 버튼 (여기에 업데이트를) 응답 부모 웹 양식에서 이벤트를 클릭하여 업데이트를 클릭하거나 또한 팝업이 닫혀지고 취소 버튼 다음
<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>
아무도 도와주세요