Response.Rdirect 在 IE 10 中的模态对话框中不起作用

Response.Rdirect is not working from Modal dialg in IE 10

我有一个使用 response.redirect 导航页面的网站。该网站正在被其他几个地方使用(不同域或来自同一域)。

当调用网站使用 IE 10 并以模式 window 打开我的网站时,问题就出现了。

这是其他网站的调用。

window.showModalDialog('mypage1.aspx',null,'dialogWidth:600px;dialogHeight:480px;');"

在这种情况下,重定向的页面 mypage1.aspx(来自我的站点)将在新的 window 中打开。现在,mypage1.aspx 有一个 'Next' 按钮调用

Response.Redirect("mypage2.aspx",true);  

'mypage1.aspx' 中的 'next' 按钮会为 mypage2.aspx 打开一个 新 window - 不在对话框本身。我想让其他网站在 相同的对话框 中打开我的网站页面。我应该怎么做?

不建议您使用window.showModalDialog()。它的功能已被弃用,您获得的任何支持都可能随时停止工作。 developer.mozilla.org/en-US/docs/Web/API/Window/showModalDialog

Deprecated. This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.