当我在 ASP.NET 页面中使用模式弹出扩展程序时,每次都会遇到此运行时错误:
“Microsoft JScript 运行时错误:'_popupElement.parentNode' 为 null 或不是对象”
有人知道如何解决这个问题吗?
这是我的模态弹出标签:
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
PopupControlID="Panel3" TargetControlID="ImageButton1"
DropShadow="true"
OkControlID="OkButton"
OnOkScript="onOk("
CancelControlID="CancelButton" >
</asp:ModalPopupExtender>
删除目标面板控件的
Visisbilty = "false"
属性。模式弹出窗口将为您处理可见性。 另外检查页面代码隐藏,不要将目标面板的可见性设置为 false。让弹出窗口发挥魔力!