window.showModalDialog 页面加载未执行

发布于 2024-07-06 05:58:59 字数 181 浏览 9 评论 0原文

我实际上正在将页面作为模式对话框加载为 window.showModalDialog("url.aspx")。 第一次弹出模式对话框时,将调用页面加载事件。 当我关闭它并再次调用相同的方法时,控件不会进入页面加载。 相反,该页面会弹出所有控件中的先前值。

我实际上希望每次弹出模式对话框时都会触发 PageLoad。

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.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

世界和平 2024-07-13 05:58:59

好的....您知道 showModalDialog 是 IE 独有的专有功能吗?
只要您意识到这一点,我认为您可能需要向您使用的网址添加一个唯一的查询字符串值,以避免显示缓存版本。 因此,生成一个随机数并将其附加到 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

紅太極 2024-07-13 05:58:59

在表单的 InPage 中应用以下指令:

<%@ OutputCache Location="None" %>

Apply following directive in the InPage of the form:

<%@ OutputCache Location="None" %>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文