模态弹出窗口消失

编程入门 行业动态 更新时间:2024-10-27 16:27:46
本文介绍了模态弹出窗口消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当发生回发时,ajax模式弹出窗口在我的页面中消失了吗?

When postback occurs , ajax modal popup was disappear in my page? how to resolve this without using update panel and reopen the modal popup in prerender event when postback occurs?

推荐答案

我们可能需要查看您的代码才能了解确切的问题,但是从您所说的看来,您需要将模式面板中的更新面板设置为具有 We probably need to see your code to understand the exact problem, but from what you said it sounds like you need to set the update panel inside your modal popup to have UpdateMode="Conditional"

然后将触发器添加到更新面板:

Then add a trigger to the update panel:

<Triggers> <asp:AsyncPostBackTrigger ControlID="ddlPopLiveDB" EventName="SelectedIndexChanged" /> </Triggers>

希望对您有帮助

Hope this helps

更多推荐

模态弹出窗口消失

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

发布评论

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

>www.elefans.com

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