在父级中关闭Modelpop并刷新更新面板 [英] Close Modelpop and refresh update panel in parent
本文介绍了在父级中关闭Modelpop并刷新更新面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个页面,我在ajax modelpopup扩展程序中加载一个动态面板,在做了一些数据库操作后需要关闭modelpopup并刷新更新面板。
我尝试过window.location.reload()。但那是整页重新加载。我想关闭modelpopup并刷新一个特定的updatepanel。
解决方案
使用此代码关闭来自asp.net codebehindModalPopupExtender1.Hide();的模型弹出窗口或来自javascript使用
var mpop =
find(' ModalPopupExtender1'跨度>); mpop.hide();使用updatemode =conditional更新任何更新面板使用
UpdatePanel1.Update();代码隐藏
I have a page where i load a dynamic panel in ajax modelpopup extender and after doing some db action needs to close modelpopup and refresh update panel.
I tried window.location.reload().But that is doing a whole page reload.I want to close modelpopup and refresh a particular updatepanel.
解决方案
Use this code to close the model popup from asp.net codebehindModalPopupExtender1.Hide();or from javascript use
var mpop =
find('ModalPopupExtender1'); mpop.hide();to update any update panel with updatemode="conditional" use
UpdatePanel1.Update();in code behind
这篇关于在父级中关闭Modelpop并刷新更新面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文