可以在Web应用程序中调用windows窗体吗? [英] It is possible to call windows form inside web application?

查看:105
本文介绍了可以在Web应用程序中调用windows窗体吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了Windows表单DLL到web应用程序后添加我使用对象调用该表单现在,在浏览器中检查的Web应用程序中单击按钮后显示的Windows表单工作正常。但是在将该Web应用程序发布到IIS服务器后现在该表单单击按钮后没有显示..



我尝试过:



在visual studio 2012中尝试使用IIS服务器作为默认服务器。当我运行我的应用程序时,它单击按钮后显示Windows窗体。之后将其发布到服务器它不工作..

I added windows form DLL to web application after adding i called that form using object now that windows form displaying after clicking the button in web application checked in browser its working fine.but after publishing that web application to IIS server now that form is not displaying after clicking button..

What I have tried:

tried in visual studio 2012 it is using IIS server as default server. when i run my appplication its showing windows form after clicking button.after publishing it to server its not working..

推荐答案

你的.net代码在服务器上运行所以表单出现在服务器上。在本地计算机上进行开发时,客户端与服务器是同一台计算机,因此当您查看页面时,它将显示在屏幕上。但是,当您将代码发布到远程服务器时,它正在那里运行,因此您不再在屏幕上看到它。



基本上你做不了什么'如果服务器只是通过访问网页就可以在您的计算机上运行代码,那么您是否可以进行映像?
Your .net code is running on the server so the form is appearing on the server. When you are developing on your local machine the client is the same machine as the server so it appears on your screen when you view the page. However when you publish the code to a remote server it is running there, so you no longer see it on your screen.

Basically you can't do what you're trying to do, can you image if servers could run code on your machine just by you visiting a web page?


这篇关于可以在Web应用程序中调用windows窗体吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆