【问题标题】:Problem with showModalDialog javascript function in Internet ExplorerInternet Explorer 中 showModalDialog javascript 函数的问题
【发布时间】:2010-12-08 06:32:47
【问题描述】:

我有一个父页面,我正在使用“showModalDialog”javascript函数在模态弹出窗口中打开另一个页面,该页面在模态弹出窗口中正确打开,但问题是,当我点击任何<aspx:Button> 在模态弹出页面中,页面再次在新的浏览器窗口中打开,而在模态弹出窗口中,它仍然处于打开状态。

任何人都知道为什么会这样吗?

我还附上了一个示例解决方案,其中包含产生问题所需的最少代码:

http://rapidshare.com/files/435608108/ShowModalDialogProblem.rar

也感谢任何其他解决此问题的方法。

【问题讨论】:

    标签: javascript asp.net internet-explorer


    【解决方案1】:

    只需在您的 aspx 页面的 <head> 部分添加以下内容:

    <base target=_self>
    

    【讨论】:

    • 我在网上某处找到了这条线,但没有注意它。非常感谢!!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多