且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将应用程序转换为Web

更新时间:2022-12-22 10:52:49

由于两者在设计方面完全不同,例如Windows控件来自System.Forms命名空间,而Web控件来自System.Web命名空间.是的,您可以在Windows和Web之间共享逻辑,但是没有可用于转换的工具.

因此,您需要首先学习asp.net并从头开始编写代码,以将winform应用程序转换为Web应用程序.

希望对您有所帮助:)
As both are totally different in terms of design for example windows controls come out of the System.Forms namespace and web controls come out of the System.Web namespace. Yes, you can share logic between windows and web but no tool is available for conversion.

Hence you need to first learn the asp.net and write the code from scratch to convert the winform application to web application.

hope it helps :)


可能非常困难.

问题在于,这不仅仅是用户界面上的简单更改,而是从以用户为中心的本地应用程序到客户端服务器环境的整体转变,在该环境中,用户和应用程序及其数据位于完全不同的计算机上. />
如果幸运的话,并且该应用程序是用牢固的三层方法编写的,并且具有明确定义的业务层和分离良好的表示层,那么您也许可以做到.但是即使那样,您仍然可能必须学习一些JavaScript以及HTML的复杂性以及如何在各种不同的浏览器上执行它.

我们不能只是说做到这一点"并且做到了-这通常是完全重写,几乎是从头开始的,除非您确实非常非常幸运.抱歉!
Probably with extreme difficulty.

The problem is that it not just a simple change in user interface - it''s a whole shift from a user centric local application to a client server environment, where the user and the application, and its data are on completely different machines.

If you are lucky, and the application was written in a solid, three tier approach with a cleanly defined Business Layer and a well separated Presentation Layer you might be able to do it. But even then, you are probably going to have to learn some javascript as well as the intricacies of HTML and how it is executed on the various different browsers.

We can''t just say "do this" and it''s done - this is generally a complete re-write, pretty much from scratch, unless you are very, very lucky indeed. Sorry!