我在页面上有两个模态弹出扩展器
<cc1:ModalPopupExtender ID="ModalPopupConfirm" runat="server"
TargetControlID="Button4"
PopupControlID="pnlPopup"
BackgroundCssClass="ModalPoopup"
BehaviorID="popup" />
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
TargetControlID="anchorbtn"
X="200" RepositionMode="None"
PopupDragHandleControlID="EmptyPanel"
PopupControlID="pnlSelfOrLetOut"
BackgroundCssClass="ModalPoopup"
BehaviorID="popupSL" />
我正在调用c#中的第一个模态弹出扩展器
ModalPopupExtender1.Show();
模态弹出窗口没有显示。
请帮帮我。
答案 0 :(得分:0)
<asp:HiddenField ID="hidForModel" runat="server" />
<cc1:ModalPopupExtender ID="ModalPopupConfirm" runat="server" TargetControlID="hidForModel"
PopupControlID="pnlPopup" BackgroundCssClass="ModalPoopup" BehaviorID="popup">
</cc1:ModalPopupExtender>
试试这个