在ASP.NET网页上托管System.Windows.Forms.WebBrowser控件时出现问题 [英] Problem in hosting System.Windows.Forms.WebBrowser control on an ASP.NET web page
问题描述
您好我有一个特定的要求,我需要在其中创建一个带有WebBrowser的WindowsControl。此WindowsControl也应该能够在ASP.NET网页中托管。但IE在渲染这个WindowsControl(其中包含WebBrowser)时遇到了问题。我可以理解IE和WB控件的紧密耦合,我想知道是否有任何替代方案。我也不能使用IFrame,因为它不能在C#Windows应用程序中使用。
底线是我正在寻找一个可以在C#WinForms和ASP.NET Web Apps中使用的控件来呈现HTML ,运行Javascripts等,
欢迎任何建议。
最好的问候,
Ram。
您好,
Windows窗体Webbrowser控件的等效Web控件是iframe。
关注。
Hi
I have a specific requirement where i need to create a WindowsControl with a WebBrowser in it. This WindowsControl should be able to host in an ASP.NET web page also. But IE has a problem in rendering this WindowsControl(which has WebBrowser in it). As i can understand the tight coupling of IE and WB control, i want to know whether there is any alternative for this. I cant go with IFrames also, as it cannot be used in C# Windows Application.
Bottom line is i'm looking for a control which can be used in both C# WinForms and ASP.NET Web Apps to render HTML, run Javascripts etc.,
Any suggestions are welcome.
Thanks
Best Regards,
Ram.
Hi,
The equivalent Web control of the Windows Forms Webbrowser control is the iframe.
Regards.
这篇关于在ASP.NET网页上托管System.Windows.Forms.WebBrowser控件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!