如何将Windows应用程序添加到Web应用程序? [英] How to add windows application to web application?

查看:126
本文介绍了如何将Windows应用程序添加到Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我正在使用asp.net和c#。我有一个窗口表单我想将Windows窗体添加到Web应用程序我不知道如何添加它任何一个给我参考。



感谢提前。



有问候,

Karthik M

解决方案

没办法。这不是因为这是不可能的,这是因为整个想法毫无意义。没有添加应用程序这样的概念,也不可能。此外,在Web应用程序中使用任何类型的Windows(Linux,Android - 您的名字)代码都是完全无稽之谈,对于知道Web真正做什么的人来说,它应该是显而易见的。



对于Web应用程序(页面,站点),UI存在于浏览器中,而不是其他任何位置。并且该UI是多平台的,因此您甚至无法讨论任何特定的本机UI API。除了UI之外,服务器端仅提供资源(数据),执行计算,数据管理等。 UI ASP.NET组件只是方便的开发时间隐喻,对于那些不了解ASP.NET代码实际发生的事情的幻想;它的所有活动都转换为特定于Web并在浏览器中呈现的HTML,JavaScript和其他数据格式(其他资源可以保存在客户端的文件中)。所以,你也必须在这个层面上工作。关于如何做的解释可能超出论坛的格式 - 答案是:学习使用ASP.NET。



-SA

Dear all,
I am working with asp.net and c#. I have one windows form i want to add the windows form to web application i don't know how to add it any one give me the reference.

Thanks for Advance.

with Regards,
Karthik M

解决方案

No way. It's not because this is impossible, this is because the whole idea makes no sense. There is no such concept as "add application", and cannot be. Moreover, using any kind of Windows (Linux, Android — you name it) code in a Web application is complete nonsense, and it should be obvious to anyone who knows what Web really does.

For a Web application (page, site), UI lives in the browser and nowhere else. And that UI is multiplatform, so you cannot even talk about any particular native UI API. Server side only supplies resources (data), performs calculation, data management and so on, anything except UI. The UI ASP.NET component is nothing but convenient development-time metaphor, illusion for those who don't understand what really happens to the ASP.NET code; all its activity translates to HTML, JavaScript and other data formats specific to Web and rendered in the browser (other resources can be saved in a file on the client side). So, you have to work on this level, too. Explanation on how to do it will probably go beyond the format of the forum — the answer would be: learn to use ASP.NET.

—SA


这篇关于如何将Windows应用程序添加到Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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