可以在Web应用程序中调用windows窗体吗?

编程入门 行业动态 更新时间:2024-10-24 22:29:41
本文介绍了可以在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..

推荐答案

你的代码在服务器上运行所以表单出现在服务器上。在本地计算机上进行开发时,客户端与服务器是同一台计算机,因此当您查看页面时,它将显示在屏幕上。但是,当您将代码发布到远程服务器时,它正在那里运行,因此您不再在屏幕上看到它。 基本上你做不了什么'如果服务器只是通过访问网页就可以在您的计算机上运行代码,那么您是否可以进行映像? Your 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窗体吗?

本文发布于:2023-11-16 22:13:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607683.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   应用程序   Web   windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!