【问题标题】:Get the content from iframe of external url从外部 url 的 iframe 中获取内容
【发布时间】:2011-03-03 03:34:07
【问题描述】:

我需要在不使用 webclient 或 httpwebrequest 的情况下从 asp.net mvc (C#) 应用程序获取加载到 iframe 中的页面(例如:someotherdomain.com/somepage)的内容(完整 html)。

【问题讨论】:

    标签: asp.net-mvc iframe cross-domain


    【解决方案1】:

    这根本不可能。您的浏览器会阻止外部站点中的 javascript(在框架中),就像 Ajax 请求一样。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-21
      • 2014-09-09
      • 2010-09-12
      • 2011-05-02
      • 1970-01-01
      相关资源
      最近更新 更多