有没有办法在浏览器上运行vb.net代码 [英] Is there any way to run vb.net code on browser

查看:73
本文介绍了有没有办法在浏览器上运行vb.net代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VB.NET上编写了一个应用程序(Visual Studio 2015)



但是我想在浏览器上运行。我的意思是我想运行所有平台。 (Windows和移动电话,Android,Mac等)



我尝试使用XAML WPF(XBAP),但我甚至无法运行IE(因为我必须安全设置),它也不支持任何浏览器。(Chrome,Opera)我也无法在手机上运行。这不实用。我试过Silverlight,但我无法在手机上运行。



是否有任何可能/方式适用于每个平台浏览器?它可以是HTML5,Flash(Actionscript)等,如果我可以轻松转换代码...



请不要提供其他编程语言。因为我没有信息。关于Csharp或任何编程。 lang。



谢谢。



我的尝试:



我试过

HTML5

Flash

Flex Web Builder

I wrote a application on VB.NET (Visual Studio 2015)

But I would like to run on browser. I mean I would like run all platforms. (Windows and Mobile Phone , Android , Mac , etc.)

I tried with XAML WPF (XBAP) but I couldn't run even IE (because I have to make security settings), also It doesn't support any browser.(Chrome,Opera) Also I couldn't run on mobile phones. It is not practical. I tried Silverlight but I couldn't run in mobile phones.

Is there any possibilities/ways working on every platform browser ? It can be HTML5 , Flash (Actionscript), or etc if I can convert code easily...

Please do not offer other programming languages. Because I have no info. about Csharp or any prog. lang.

Thanks.

What I have tried:

I tried
HTML5
Flash
Flex Web Builder

推荐答案

您需要的是一个Web应用程序。你拥有的是一个桌面应用程序。您可以使用ASP.Net Web表单或ASP.Net MVC。无论什么适合你。



如果您希望将来创建移动应用程序(Android / Windows / iOS),我建议将核心业务逻辑与Web应用程序分开。您可以使用ASP.Net Web API或WCF。确保以通信轻量级的方式编写它们。您不希望向手机发送大量回复。它会为用户消耗大量数据,也可能最终变慢。
What you need is a web application. What you have is a desktop application. You can make use of ASP.Net web forms or ASP.Net MVC. Whatever suits you.

I would recommend keeping the core business logic separate from web application in case you wish to create mobile apps in future (Android/Windows/iOS). You can make use of ASP.Net Web API or WCF. Make sure to write them in a way that communication is lightweight. You do not want to send huge responses to mobile phones. It will eat up a lot of data for users and might end up being slow as well.


这篇关于有没有办法在浏览器上运行vb.net代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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