模态弹出窗口消失 [英] modal popup disappear

查看:45
本文介绍了模态弹出窗口消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当发生回发时,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


这篇关于模态弹出窗口消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆