【发布时间】:2012-02-15 09:56:33
【问题描述】:
我有一小段代码,我想加载嵌入在我的一个 aspx 页面中的另一个网站的一部分:
<tr>
<td style="padding-left:15px;">
<iframe src="http://www.google.com/" width="210" height="100" /></iframe>
</td>
</tr>
当我在 IE 中查看页面时,框架有以下警告文本:
To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.
但是,google.com 或任何其他外部页面在任何情况下都不会加载。 iframe 是一个非常简单的标签...是明显缺失的东西,还是 ASP.NET 施加了一些约束?
提前致谢。
【问题讨论】: