运行时错误:“_popupElement.parentNode”为 null 或不是对象
当我在 ASP.NET 页面中使用模态弹出扩展器时,每次都会收到此运行时错误:
“Microsoft JScript 运行时错误:'_popupElement.parentNode' 为 null 或不是对象”
有人知道如何克服这个问题吗?
这是我的 modalpopup 标签:
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
PopupControlID="Panel3" TargetControlID="ImageButton1"
DropShadow="true"
OkControlID="OkButton"
OnOkScript="onOk("
CancelControlID="CancelButton" >
</asp:ModalPopupExtender>
When I'm using modal popup extender in asp.net pages, I got this runtime error every time:
"Microsoft JScript runtime error: '_popupElement.parentNode' is null or not an object"
Does anybody know how to overcome this problem?
This is my modalpopup tag:
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
PopupControlID="Panel3" TargetControlID="ImageButton1"
DropShadow="true"
OkControlID="OkButton"
OnOkScript="onOk("
CancelControlID="CancelButton" >
</asp:ModalPopupExtender>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
删除目标Panel 控件的
Visisbilty = "false"
属性。模式弹出窗口将为您处理可见性。另外检查页面代码隐藏,不要将目标面板的可见性设置为 false。让弹出窗口发挥魔法吧!Remove the
Visisbilty = "false"
attribute for the target Panel control. The modal popup will handle visiblity for you. Additionally check the page codebehind to NOT set the visibilty to false of the target Panel. Let the pop-up do the magic!