window.showModalDialog页面加载未执行 [英] window.showModalDialog Page Load not being executed

查看:718
本文介绍了window.showModalDialog页面加载未执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我其实加载页面作为一个模式对话框window.showModalDialog(url.aspx)。第一次模态对话框被弹出了页面加载事件被调用。当我关闭并重新调用相同,控制不来的pageLoad的。相反,页面弹出在其所有控制previous值。

I am actually loading a page as a modal dialog box as window.showModalDialog("url.aspx"). The first time the modal dialog is poped up the page load event gets called. When i close it and call the same again, the Control does not come to the PageLoad. Instead the page pops up with the previous values in all its controls.

其实我是想被触发pageLoad的每次模态对话框弹出。

I actually want the PageLoad to be triggered everytime the modal dialog pops up.

推荐答案

确定....你知道在showModalDialog是一个专有的IE只是功能?
只要你意识到这一点那么我想你可能需要一个唯一的查询字符串值添加到您正在使用,以避免即显示缓存版本的URL。于是产生一个随机数,并追加到URL例如url.aspx?RND = 12237827348273。这应该胸围缓存​​,并作出新的要求

ok....you do know showModalDialog is an proprietary IE only feature? As long as you are aware of this then I think you may need to add a unique querystring value to the url that you are using to avoid ie showing the cached version. So generate a random number and append it to the url e.g url.aspx?rnd=12237827348273. This should bust the cache and make a fresh request

这篇关于window.showModalDialog页面加载未执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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