ASP.Net 和 WinForms [英] ASP.Net and WinForms

查看:22
本文介绍了ASP.Net 和 WinForms的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在争论是否使用 ASP.Net WinForms 来管理网站上的内容.

I have been debating whether or not to use ASP.Net WinForms to manage content on a website.

本网站上的部分内容已经通过网络应用程序进行管理,并且全球有成千上万的用户管理着他们自己的内容.

Some of the content on this website is already managed through a web application and has thousands of users worldwide managing their own content.

WinForms 的添加将用于由员工管理的特定内容,主要在中央办公室位置,但有时不在办公室.

The addition of WinForms would be for specific content that would be managed by Staff, mostly in a central office location but sometimes out of office.

单击一次应用程序将允许该应用程序在任何地方的 Windows 机器上运行(我假设.)

A click once application would allow the application to be run on windows machines anywhere (I assume.)

这种方法的利弊是什么?

What would the pros and cons be with this sort of approach?

作为一名网页设计师,将网页内容的内容管理应用程序构建为 Windows 桌面应用程序对我来说似乎很荒谬.(而且除非我安装 Windows,否则我无法在 Mac 上使用它也无济于事...)

Being a web designer it seems ludicrous to me that a content management application for web content could be built as a Windows desktop Application. (And it doesnt help that I wont be able to use it on my Mac unless I install Windows...)

但同样,我不是专家,这就是我问的原因.

But again, I am no expert, thats why I am asking.

推荐答案

你似乎持怀疑态度,所以让我们从另一个方向问:为什么 你想要在 Winforms 中编写这样一个应用程序开始?您想实现哪些网络应用无法实现的目标?

You seem skeptical, so lets ask from the other direction: Why would you want to write such an application in Winforms to begin with? What are you trying to achieve which can't be done via a web app?

想到了几种可能性:

  • 更丰富的编辑画布/w 功能,例如图像处理和拼写检查.这些通常更容易在桌面应用程序中实现.

  • Richer editing canvas /w features such as image manipulation and spell-check. These are typically easier to implement in desktop applications.

在 JS 中不可行的性能密集型算法

performance intensive algorithms which aren't feasible in JS

集成/w 现有桌面应用程序,例如 MS Office 或 Powerpoint.

Integration /w existing desktop applications such as MS Office or Powerpoint.

集成/w 硬件设备(平板电脑、触摸设备等)

Integration /w hardware devices (tablets, touch devices, etc)

离线支持(可通过浏览器实现,但会带来更多痛苦)

Offline support (doable via browser but involves much more pain)

因此,假设您需要上述一个或多个,下一个问题将是 - 为什么是 Winforms?.Net 提供了更新、更好的替代方案,例如 WPF 和 Silverlight,它们都更接近于 Web 设计范式,并且可能更容易让 Web 开发人员接受.更不用说 Silverlight 也可以托管在浏览器中以获得混合体验.

So, assuming you need one or more of the above, the next question would be - why Winforms? .Net provides newer, better alternatives such as WPF and Silverlight, both of which are much closer to the web design paradigm and will likely be easier for a web developer to pick up. Not to mention that Silverlight can also be hosted in a browser for a hybrid experience.

这只是冰山一角,如果您能提供更多信息,我们可以继续进行更深入的讨论...

This is just the tip of the iceberg, if you can provide additional info we can continue the discussion in more depth...

这篇关于ASP.Net 和 WinForms的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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