简体   繁体   English

如何从url在html页面中显示网页?

[英]How to display a webpage in a html page from an url?

I want to display 2 webpages in single aspx webpage is it possible ?我想在单个 aspx 网页中显示 2 个网页可以吗?

for example例如

user -- open link for www.mywebsite.com用户 -- 打开 www.mywebsite.com 的链接

In my homepage i want to display both www.google.com and www.bing.com.在我的主页中,我想同时显示 www.google.com 和 www.bing.com。

In the background i call two different url's and they should display on my same aspx page.在后台,我调用了两个不同的 url,它们应该显示在我的同一个 aspx 页面上。

To integrate websites in other websites use an iframe like this:要将网站集成到其他网站中,请使用像这样的iframe

 <iframe src="http://www.bing.com"></iframe>

More information: w3schools更多信息: w3schools

Google This will not work for google because of their therms and services:谷歌这对谷歌不起作用,因为他们的温度和服务:

1.3 Your Obligations. 1.3 您的义务。 You shall receive a Query from the End User and shall forward that Query to Google.您将收到来自最终用户的查询并将该查询转发给 Google。 You maynot in any way frame, cache or modify the Results produced by Google, except as otherwise agreed to between You and Google.除非您与 Google 另有约定,否则您不得以任何方式构建、缓存或修改Google 生成的结果

So if you want to integrate Google search to your website, you can read more about the API here Google Api因此,如果您想将 Google 搜索集成到您的网站,您可以在此处阅读有关 API 的更多信息Google Api

Bing To embend searchresults from bing take a look at the Bing api . Bing要嵌入来自 bing 的搜索结果,请查看Bing api 5000 queries per day are free.每天 5000 次查询是免费的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM