【问题标题】:Modal popup extender not showing模态弹出扩展器未显示
【发布时间】:2014-04-01 09:55:05
【问题描述】:

我在页面上有两个模态弹出扩展器

<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();

模态弹出窗口未显示。

请帮帮我。

【问题讨论】:

  • 请发布所有相关信息(比如 anchorbtn、EmptyPanel、pnlSelfOrLetOut、ModalPoopup css 、popupSL )和 cs 代码来自 ModalPopupExtender1.Show(); 正在调用...
  • 你调试过这个 Show() 调用了吗?

标签: c# asp.net modalpopupextender


【解决方案1】:
<asp:HiddenField ID="hidForModel" runat="server" /> 

<cc1:ModalPopupExtender ID="ModalPopupConfirm" runat="server" TargetControlID="hidForModel"
PopupControlID="pnlPopup" BackgroundCssClass="ModalPoopup" BehaviorID="popup">
</cc1:ModalPopupExtender>

试试这个

【讨论】:

  • 感谢您的解决方案,但我已经使用了页面上的脚本管理器。请提供另一个解决方案。
  • 向您的页面添加隐藏字段。将 ModalPopup TargetControlID 设为隐藏字段 ID
猜你喜欢
  • 2020-01-30
  • 1970-01-01
  • 1970-01-01
  • 2012-05-04
  • 2012-10-22
  • 1970-01-01
  • 1970-01-01
  • 2011-05-25
  • 1970-01-01
相关资源
最近更新 更多