AJAX ModalPopup 弹出(下方)页面内容(负 z

编程入门 行业动态 更新时间:2024-10-25 23:29:12
本文介绍了AJAX ModalPopup 弹出(下方)页面内容(负 z-index)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在 AJAX 控制工具包 (http) 的 40412 版中遇到了 AJAX ModalPopupExtender 的问题://ajaxcontroltoolkit.codeplex/releases/view/43475).

I am having an issue with the AJAX ModalPopupExtender in version 40412 of the AJAX Control Toolkit (ajaxcontroltoolkit.codeplex/releases/view/43475).

ModalPopup 第一次可见时,它可以正常工作.z-index 设置为 6001(背景 Div 的 z-index 设置为 6000)并且弹出窗口显示在其他所有内容之上.如果单击 ModalPopup 中的取消按钮,它也具有正确的功能,显示设置为无"并且 ModalPopup 不再可见.

The first time the ModalPopup is made visible it works correctly. The z-index is set to 6001 (and the background Div's z-index is set to 6000) and the Popup appears above everything else. If the cancel button within the ModalPopup is clicked, it also has the correct functionality, the display is set to "none" and the ModalPopup is no longer visible.

但是,当再次触发 Popup 时,z-index 仅设置为 2000,这仍然高于其他所有内容,但如果取消并再次触发,则设置为 -2000,即不可见(z-index 每次减少 4000).

However, when the Popup is triggered again, the z-index is only set to 2000 which is still visible above everything else, but if it is canceled and triggered again it is set to -2000 which is not visible (the z-index is decreasing by 4000 each time).

我不确定为什么会发生这种情况.任何想法如何解决它?

I'm not sure why this is happening. Any ideas how to fix it?

特殊情况:

  • 页面上有多个 ModalPopup.
  • 所有 ModalPopups 都是通过部分页面回发(使用 .Show() 方法)在代码隐藏中触发的
  • ModalPopupExtender 位于显示为弹出窗口的同一 UpdatePanel 中

更新:这是项目团队确认的错误.ajaxcontroltoolkit.codeplex/workitem/26739.现在已经修复.

UPDATE: this was a confirmed bug by the project team. ajaxcontroltoolkit.codeplex/workitem/26739. It has now been fixed.

推荐答案

这是项目团队确认的错误.ajaxcontroltoolkit.codeplex/workitem/26739.现在已经修复.

This was a confirmed bug by the project team. ajaxcontroltoolkit.codeplex/workitem/26739. It has now been fixed.

来自团队:我们已确认这是初始版本 40412 中的错误.我们现在已替换为修复此问题的修改版本.请重新下载40412以解决此问题

From Team: We have confirmed that this is a bug that was in the initial release 40412. We have now replaced with a modified release that fixes this. Please download 40412 again to resolve this issue

更多推荐

AJAX ModalPopup 弹出(下方)页面内容(负 z

本文发布于:2023-06-11 17:30:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/639791.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出   页面   内容   AJAX   ModalPopup

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!