如何使用ASP.NET将VB.NET Windows应用程序转换为Web应用程序

问题描述:

您好,

我使用visual studio应用程序开发了visual basic 6.0作为vb.net,现在我想使用asp.net源代码将其升级为web应用程序。

请为我做必要的帮助





谢谢



我尝试了什么:



我使用visual studio应用程序开发了visual basic 6.0作为vb.net,现在我想升级它在使用asp.net源代码的web应用程序中。

请为我做必要的帮助

Hello,
I have developed visual basic 6.0 using visual studio application as vb.net, now i want to upgrade it in as web application using asp.net source code.
Please do necessary help for me


Thank you

What I have tried:

I have developed visual basic 6.0 using visual studio application as vb.net, now i want to upgrade it in as web application using asp.net source code.
Please do necessary help for me

你不能真的只是转换它 - 两个系统的工作方式非常不同。

对于初学者来说,VB6不是.NET - 所以为它编写的代码不会像专门为.NET编写的代码那样高效和可维护因为较新的框架是非常不同的。



但主要的问题是基于Web的应用程序不像Windows应用程序那样工作 - 它分为分为两部分:基于服务器的元素,用作为基于客户端的用户界面提供页面的后台。并且客户端根本不运行VB,它处理非常非常不同的HTML和Javascript - 只有服务器运行VB并且用户没有与之直接交互。



您最好的方法是使用现有的应用程序作为模板并基于此指定新的Web版本,然后从头开始编写新的应用程序以满足新规范。
You can't really just "convert it" - the two systems work very, very differently.
For starters, VB6 isn't .NET - so code written for it won't be as efficient and maintainable as code written specifically for .NET as the newer framework is very different.

But the main problem is that a web based application doesn't work like a windows app - it's split into two sections: a Server based element that works as the background to serve up pages for the Client based user interface. And the Client doesn't run VB at all, it processes HTML and Javascript which are very, very different - only the Server runs VB and the user doesn't have any direct interaction with that.

Your best approach is to use the existing app as a template and specify the new web version based on that, then write a new application from scratch to meet the new specification.