简体   繁体   English

在托管网站中,嵌入来自其他本地Web服务器的网页

[英]In a hosted website ,embed web pages from other local web server

I host a website, in that i called few web pages from other server (locally hosted on other server). 我托管一个网站,因为我从其他服务器(本地托管在其他服务器上)调用了几个网页。 I embed those pages in Iframe. 我将这些页面嵌入到iframe中。

<iframe src="http://192.168.1.11  /DSS/DashboardEngine.aspx?DashboardID=Muda\PSI\OverviewWL" scrolling="auto" runat="server" width="99.8%" height="475px"></iframe>

When i access website in its local network that time embedded pages are showing perfectly 当我访问其本地网络中的网站时,嵌入的页面显示得很好

在此处输入图片说明

If i access website from outside then those embeded pages are giving local url access issues. 如果我从外部访问网站,则那些嵌入的页面正在提供本地URL访问问题。

在此处输入图片说明

How can we call those local web pages from other local server efficeintly on hosted website.Plese help.. 我们如何在托管网站上有效地从其他本地服务器调用这些本地网页。请帮助。

Iframe's content is requested by the user's browser. 用户浏览器请求iframe的内容。 If user's browser cannot access that IP address it will not be able to get to the content. 如果用户的浏览器无法访问该IP地址,则将无法访问该内容。 You are using a local IP address 192.168.1.1 which you can ping from within network but when outside of the network it will not be reachable. 您正在使用本地IP地址192.168.1.1,可以从网络内部ping通,但是在网络外部将无法访问。

It is just like you say to the browser to read a website like any other but then to display it within the iframe borders. 就像您对浏览器说的一样,您可以阅读一个网站,然后将其显示在iframe边框内。

http://192.168.1.11 /DSS/DashboardEngine.aspx http://192.168.1.11 /DSS/DashboardEngine.aspx

needs to be something like 需要像

http://yourdomain.com/DSS/DashboardEngine.aspx http://yourdomain.com/DSS/DashboardEngine.aspx

Other option for you is to access that content on the server side and include it in your response. 您还可以选择在服务器端访问该内容并将其包含在响应中。

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

相关问题 托管在另一台计算机上的Web应用程序可以在不将数据发送到服务器的情况下从本地.NET应用程序接收数据吗? - Can a web application hosted on another machine receive data from a local .NET application without sending data to the server? 使用JavaScript从托管网站重定向到本地IIS服务器页面 - Redirect to Local IIS server page from Hosted website in javascript 在托管Web服务器中安排作业 - Schedule a job in hosted web server web 中的网站托管服务和本地服务器中的数据库 [暂停] - Website in web hosting service and DB in local server [on hold] 如何将托管的Web应用程序与本地数据库连接? - How to connect a hosted Web Application with a local database? 有什么方法可以从 Web 服务器中托管的 Web 应用程序访问客户端(用户)特殊文件夹 - Is there any way to access clients(users) special folder from web application hosted in web server 如何获取文件的大小(托管在Web服务器上)? - How To Get The Size Of A File (Hosted On A Web Server)? 如何在Web页面网站中不使用_Layout页面 - How to NOT use the _Layout page in a Web Pages website 从Windows 8应用程序调用本地Web服务(自托管WCF) - Call local web service (self-hosted WCF) from Windows 8 app 运行 razor 托管页面,blazor web 程序集,IIS 上的应用程序 10 - Running razor pages hosted, blazor web assembly, application on IIS 10
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM