简体   繁体   English

将浏览器嵌入基于ASP.NET Web的工具中

[英]Embed a browser in a asp.net web-based tool

[Note: I have modified my original post to provide some clarifications - me] [注意:我修改了我的原始帖子以提供一些说明-我]

Does anyone know of a way to embed a web browser within a web page, eg through a Java applet or similar mechanism? 有谁知道例如通过Java小程序或类似机制将Web浏览器嵌入网页中的方法吗? I have reviewed the discussion on various solutions for embedding a browser in a Java application. 我已经回顾了有关将浏览器嵌入Java应用程序的各种解决方案的讨论。 However, this will not work for our web-based tool, which is built on an asp.net framework. 但是,这不适用于基于Web的工具,该工具基于asp.net框架。 Using a Java applet is our current idea, but if you have other suggestions to address this issue, please post those as well! 使用Java小程序是我们目前的想法,但是如果您有其他建议要解决此问题,请也发布这些建议!

This is to be used in a web-based tool that guides middle school, high school, and college students to read websites critically. 这将在基于Web的工具中使用,该工具指导中学生,高中生和大学生认真阅读网站。 The tool provides a set of guiding questions and other information along with a data-entry box surrounding the actual 3rd party web-page being viewed. 该工具提供了一组指导性问题和其他信息,以及围绕正在查看的实际第三者网页的数据输入框。 The purpose of our tool is to allow teachers to choose websites for students to view and analyze - or allow students to choose the sites themselves. 我们工具的目的是允许教师选择网站供学生查看和分析-或允许学生自行选择网站。 We (/the tool) do not control what sites or types of media are chosen. 我们(/工具)不控制选择哪种站点或媒体类型。

We are currently loading the web-page in an IFrame, but that technique is limited in several ways. 我们目前正在将网页加载到IFrame中,但是该技术受到多种限制。 It does not provide full control for browser-like features we would like to provide, and is very sensitive to changes in both third party web-sites and to browser versions used by students. 它不能完全控制我们想要提供的类似浏览器的功能,并且对第三方网站的更改和学生使用的浏览器版本非常敏感。 The most difficult issue we have pertains to anti-hijacking mechanisms used on the third-party sites. 我们遇到的最困难的问题与第三方站点上使用的反劫持机制有关。 For good reasons, they use mechanisms that make them impossible to load into an iFrame -- that is, when you try to load the page into the iFrame, it will take over the entire browser window. 出于充分的原因,它们使用的机制使其无法加载到iFrame中-也就是说,当您尝试将页面加载到iFrame中时,它将接管整个浏览器窗口。 Not only will the page not load WITHIN our frame, it will actually make our application "disappear", thereby making it impossible for students to use these sites within our tool, and potentially also causing students to lose their work. 该页面不仅不会在框架内加载,而且实际上会使我们的应用程序“消失”,从而使学生无法在我们的工具中使用这些网站,并有可能导致学生失去工作。

The tool, which has take several years to develop, is currently web-based for a variety of reasons based on the needs of our users. 该工具已经开发了数年,目前基于用户的各种原因出于各种原因而基于网络。 I would appreciate any advice or insights the community may have! 我希望社区提供任何建议或见解!

Thanks. 谢谢。

If you have web application (ASP.NET page as you described), use web-based solutions, ie IFrame, etc. 如果您具有Web应用程序(如您所述的ASP.NET页),请使用基于Web的解决方案,例如IFrame等。

Web browser controls anyway is a desktop solution. 无论如何,Web浏览器控件是一种桌面解决方案。

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

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