添加System.Windows.Forms的引用到asp.net网站 [英] Adding System.windows.Forms reference into asp.net website
问题描述
我在哪里,我使用System.Windows.Forms命名空间中参考使用Web浏览control.the应用程序正常运行在本地系统中的asp.net应用程序,但托管后,它会显示错误。 我如何嵌入DLL文件中的Web应用程序使用。
I have a asp.net application where i use System.Windows.Forms namespace reference to use web browser control.the application runs fine on local system but after hosting it shows error. How do i embed the dll for to use in the web application.
推荐答案
由于previously提到的,你不能使用的WinForms与ASP.NET控件。
As previously mentioned, you cannot use WinForms controls with ASP.NET.
使用一个iframe来显示任何网页你想在WebBrowser控件来显示: HTTP: //www.w3schools.com/tags/tag_iframe.asp
Use an iframe to show whatever page you're trying to display in the webbrowser control: http://www.w3schools.com/tags/tag_iframe.asp
这篇关于添加System.Windows.Forms的引用到asp.net网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!