简体   繁体   English

VB.NET到ASP.NET

[英]VB.NET to ASP.NET

有没有一种方法可以在不更改代码的情况下将VB.NET应用程序转换为ASP.NET

ASP.NET isn't a language. ASP.NET不是一种语言。 It's a web framework, generally using C# or VB as a language. 这是一个Web框架,通常使用C#或VB作为语言。 VB.NET code can be used directly in ASP.NET, no conversion necessary. VB.NET代码可以直接在ASP.NET中使用,无需进行转换。

Now, converting something like a WinForms UI to a web UI, that's another story. 现在,将WinForms UI之类的内容转换为Web UI,这是另一回事了。 And, no, there's no direct way to convert them. 而且,没有,没有直接的方法可以转换它们。 They're vastly different technologies and architectures. 它们是截然不同的技术和架构。 Even if you do find something that claims to do the job, it's going to emit a terrible web UI. 即使您确实找到声称可以胜任此事的东西,也会发出可怕的 Web UI。

But all you should need to change is the UI layer. 但是,您需要更改的只是UI层。 The same business logic classes, object models, data access, etc. can all work the same. 相同的业务逻辑类,对象模型,数据访问等都可以相同地工作。 (Assuming it's not tightly coupled with the UI, of course... in which case you don't have a language/framework problem so much as an application design problem.) (当然,假设它与UI没有紧密结合...在这种情况下,您不会遇到语言/框架问题,而不会遇到应用程序设计问题。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM